简体   繁体   English

在语言工具上创建字典

[英]Create a dictionary on Language Tool

I'm trying to create a french dictionary to use it on Language Tool Spelling checker. 我正在尝试创建法语词典以在“语言工具拼写检查器”上使用它。 The code itself seems to create it, but it's not my case because I can't find the .dict file on my folder. 代码本身似乎是创建代码的,但这不是我的情况,因为我无法在文件夹中找到.dict文件。 Hope you can help me - maybe it's just an erroneous use of Java code. 希望您能对我有所帮助-也许这只是对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

这是LanguageTool中的错误,已在每晚的版本中修复: http : //forum.languagetool.org/t/create-a-dictionary-for-french-language/852/21?u=dnaber

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM