1、JWNL介绍:JWNL is an API for accessing WordNet-style relational dictionaries. It also provides functionality beyond data access, such as relationship discovery and orphological
processing. ********是一个访问WordNet风格的关系词典的API,除了能够提供数据访问外,还可以方便关系发现和语义处理********
2、基本操作方法:Basic UsageUsing JWNL is very simple. First, call JWNL.initialize() somewhere in the initialization code of your program. (JWNL.initialize()在程序中进行初始化)
Then, just call Dictionary.getInstance() to get the currently installed dictionary. The only dictionary methods you should really ever need to call are lookupIndexWord(), lookupAllIndexWords(), and getIndexWordIterator(). (Dictionary.getInstance()获取当前所载入的词典,lookupIndexWord()进行词语的寻找。)
The other methods you may be interested in RelationshipFinder.findRelationships(), and those in PointerUtils. (RelationshipFinder.findRelationships()进行关系的查找(一般为继承关系类属))RelationshipFinder.findRelationships() allows you to find relationships of a given type between two words (such as ancestry). Another way of thinking of a relationship is as a path from the source synset to the target synset. (另外也可以通过计算源词语与目标词语距离的计算)The methods in PointerUtils allow you to find chains of pointers of a given type. For example, calling PointerUtils.getHypernymTree() on the synset that contains "dog," returns a tree with all its parent synsets ("canine"), and its parents' parents ("carnivore"), etc., all the way to the root synset ("entity"). (PointerUtils允许发现某个节点的给定类型的节点链)
3、改进目标:Goals for Future ReleasesThere are many areas in which JWNL needs improvement: Support for non-english dictionaries A GUI for browsing the dictionary Better documentation, logging, and error messages Frequency of sense use As JWNL is now officially an open-source project, you are
encouraged to improve JWNL in any of these areas, or any other
areas in which you see fit.