java - jwnl unable to install database -


i trying build bespoke dictionary. testing jwnl. following error:

 net.didion.jwnl.jwnlexception: unable install      net.didion.jwnl.dictionary.filebackeddictionary 

my xml file -

<?xml version="1.0" encoding="utf-8"?> <jwnl_properties language="en">     <version publisher="princeton" number="2.0" language="en"/>     <dictionary class="net.didion.jwnl.dictionary.filebackeddictionary">             <param name="morphological_processor" value="net.didion.jwnl.dictionary.morph.defaultmorphologicalprocessor">                     <param name="operations">                             <param value="net.didion.jwnl.dictionary.morph.lookupexceptionsoperation"/>                             <param value="net.didion.jwnl.dictionary.morph.detachsuffixesoperation">                                     <param name="noun" value="|s=|ses=s|xes=x|zes=z|ches=ch|shes=sh|men=man|ies=y|"/>                                     <param name="verb" value="|s=|ies=y|es=e|es=|ed=e|ed=|ing=e|ing=|"/>                                     <param name="adjective" value="|er=|est=|er=e|est=e|"/>                 <param name="operations">                     <param value="net.didion.jwnl.dictionary.morph.lookupindexwordoperation"/>                     <param value="net.didion.jwnl.dictionary.morph.lookupexceptionsoperation"/>                 </param>                             </param>                             <param value="net.didion.jwnl.dictionary.morph.tokenizeroperation">                                     <param name="delimiters">                                             <param value=" "/>                                             <param value="-"/>                                     </param>                                     <param name="token_operations">                     <param value="net.didion.jwnl.dictionary.morph.lookupindexwordoperation"/>                                             <param value="net.didion.jwnl.dictionary.morph.lookupexceptionsoperation"/>                                             <param value="net.didion.jwnl.dictionary.morph.detachsuffixesoperation">                                                     <param name="noun" value="|s=|ses=s|xes=x|zes=z|ches=ch|shes=sh|men=man|ies=y|"/>                                                     <param name="verb" value="|s=|ies=y|es=e|es=|ed=e|ed=|ing=e|ing=|"/>                                                     <param name="adjective" value="|er=|est=|er=e|est=e|"/>                         <param name="operations">                             <param value="net.didion.jwnl.dictionary.morph.lookupindexwordoperation"/>                             <param value="net.didion.jwnl.dictionary.morph.lookupexceptionsoperation"/>                         </param>                                             </param>                                     </param>                             </param>                     </param>             </param>             <param name="dictionary_element_factory" value="net.didion.jwnl.princeton.data.princetonwn17filedictionaryelementfactory"/>             <param name="file_manager" value="net.didion.jwnl.dictionary.file_manager.filemanagerimpl">                     <param name="file_type" value="net.didion.jwnl.princeton.file.princetonrandomaccessdictionaryfile"/>                     <param name="dictionary_path" value="/"/>             </param>     </dictionary>     <resource class="princetonresource"/> 

i have following java code -

    document doc = jsoup.parse(page);     try {         jwnl.initialize(new fileinputstream("file_properties.xml"));         string s = doc.text();         string[] words = s.split(" ");         (string word: words) {             // check word in dictionary             indexword awordindexnoun = dictionary.getinstance().getindexword(pos.noun, word);             indexword awordindexadj = dictionary.getinstance().getindexword(pos.adjective, word);           }     } catch (exception e) {         system.out.println("system found error - " + e);      } 

i using java 1.7, under ubuntu , using eclipse testing. assume error in dictionary_path cannot find works. did not manually download wordnet database - unsure located. have ideas solve problem?

i worked out answer install mysql have not tested because system uses mongo db.


Comments

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -