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

Help!!!

I'm working on post-edit translation tool, which it is built in java. And I'm going to implement spell/grammar checker and auto-suggestion( based on dictionaries) functions. Those functions are pretty much like google translator. Could someone give me some ideas? 

thanks --------------------编程问答-------------------- these functions i see are primarily focused on the word level, right?

if so, i think the most part you need is a word library which would be used as a template to match the words you are appllying.

maybe there's an existent open-source tool for you, otherwise i think you might probably need to implement it upon algorithms like string pattern matching etc to decide what actually the wrong word's supposed to be. --------------------编程问答-------------------- Thanks for your reply. Actually,  I'm working for an existent open-source tool PET. I will add three functions. Firstly, it is alignment between source and target segments (word/phrase-level). I'm going to find  a nice/easy-to-use component, then i experiment with highlighting the alignment without even integrating it back into PET. But this is not necessary, and I've found some component, which are not good for me. Next two functions are spell/grammar checker and auto-suggestion I mainly work. But I don't know how to get start. --------------------编程问答-------------------- i see, cool, nice project, the first function of alignment from technological view is totally a non-related function to the latter two. i guess concentrating on one of them at a time is a good choice.

1. first thing to do is to implement the spell checker

(here only talk about the way of own implementation)
algorithm of string pattern match is the key point i think, given a wrong word, let the program to decide what it's supposed to be, assume the correct one might have the nearest form with the wrong one. this method should have a lot details to implement, if not to correct it, just reporting the wrong word, it would be easy. 

how the interpret the nearest form? select the word from the database which has the same length and most alphabets with the wrong word.

2. secondly grammar checker
much more complex, i think such engine should grab keyword of grammar, like verbs and their corresponding subjects or objects, nouns(should they are plural or not) etc. just a rough idea.

hope this could help --------------------编程问答-------------------- Thanks a lot! These are very helpful.
补充:Java ,  Java相关
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,