2016-05-11 53 views
1

我正在尝试创建一个法语词典以在语言工具拼写检查器上使用它。 代码本身似乎创建它,但它不是我的情况,因为我无法在我的文件夹中找到.dict文件。 希望你能帮助我 - 也许这只是错误地使用Java代码。在语言工具上创建词典

java -cp languagetool.jar org.languagetool.tools.SpellDictionaryBuilder fr_FR -i C:/Users/KP/Desktop/LanguageTool/french_dict.txt -info org/languagetool/resource/fr/french.info -o C:/Users/KP/Desktop/LanguageTool/output.dict 

    Running Morfologik FSACompile.main with these options: [--exit, false, -i, C:\Users\KP\AppData\Local\Temp\SpellDictionaryBuilder257816875475185246.txt, -o, C:\Users\KP\Desktop\LanguageTool\output.dict, -f, CFSA2, --overwrite] 
    Invalid argument: Unknown option: --overwrite 

    Usage: fsa_compile [options] 
    Options: 
      --accept-bom 
       Accept leading BOM bytes (UTF-8). 
       Default: false 
      --accept-cr 
       Accept CR bytes in input sequences (\r). 
       Default: false 
      -f, --format 
       Automaton serialization format. 
       Default: FSA5 
       Possible Values: [FSA5, CFSA2] 
      --ignore-empty 
       Ignore empty lines in the input. 
       Default: false 
      * -i, --input 
       The input sequences (one sequence per \n-delimited line). 
      * -o, --output 
       The output automaton file. 
    Done. The binary dictionary has been written to C:\Users\KP\Desktop\LanguageTool\output.dict 

回答