当前位置:编程学习 > JAVA >>

java数据库操作和在线查询翻译问题。

需要用java实现。具体为对于一个搜索引擎界面,对输入的查询关键词进行翻译。首先,本地有一个词典数据库,对于输入的中文或者英文查询关键词,从本地词典数据库查询并进行翻译,把对应的翻译也作为查询关键词进行查询另一个数据库从而返回搜索结果。如果本地词典数据库没有相应的翻译结果,那么需要进行网络在线查询翻译,并对翻译的结果进行筛选,选出最接近的翻译结果并把这一词条加入本地词典数据库。例如输入一个中文关于航空的词语,本地数据库没有的话在线使用蓝天航空词典进行查询。结果发送到1746077859@qq.com,采纳的话有加分。
补充:不是翻译啊,是用java实现所提问题,我汗一个
答案:SQLConnection1.Params.clear
然后再添上你自己修改的值
SQLConnection1.Params.Values['ServerName'] := '192.168.0.112'; 
SQLConnection1.Params.Values['Database'] := 'trackData'; 
SQLConnection1.Params.Values['User_Name'] := 'sa'; 
SQLConnection1.Params.Values['Password'] := '123456'; 
SQLConnection1.Open;
其他:Need to use Java implementation. Specific for a search engine, the input inquires interface keywords translation. First, the local have a dictionary database, for input in Chinese or English inquires the keywords, from local dictionary database query and the corresponding translation, translators are as search keywords to another database query returns search results. If the local no corresponding translation dictionary database, so the need for online query translation, and the results of translation, to select the screening closest translation results and the entry to join the local dictionary database. For example input a Chinese words about airlines, local database if not online use blue sky aviation dictionary query. 太快了 dySE:一个 Java 搜索引擎的实现,第三部分:查询服务

在之前的两个部分中,您了解到 spider 的编写和对原始网页库的预处理:通过 spider 我们得到一个原始网页库,而通过预处理部分建立网页的索引,并用分词器对网页进行分词进而创建倒排索引。本部分内容将要介绍查询服务的编写,查询服务通过接收用户的输入,调用后台程序对输入进行分词以及查询操作之后,将返回的查询结果在网页上显示。本文分三个步骤介绍查询服务的实现过程:首先使程序在控制台下能够返回查询结果,为查询结果的显示做准备;然后,搭建 Web 服务器进行网络编程使得程序能够方便的输入并进行结果返回;最后,介绍网页的排名策略和实现。下面就让我们逐步介绍查询服务的设计和实现。

具体请看:http://www.ibm.com/developerworks/cn/java/j-lo-dyse3/index.html?ca=drs-

记得给分哦!(*^__^*) 嘻嘻…… 

上一个:java空指针问题,怎么改?
下一个:java循环网球赛代码,界面响应部分不会做,求正确源码带详细注释。谢谢,我QQ53294380

CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,