【问题标题】:Create a dictionary on Language Tool在语言工具上创建字典
【发布时间】:2016-05-11 14:40:16
【问题描述】:

我正在尝试创建一个法语词典以在语言工具拼写检查器上使用它。 代码本身似乎创建了它,但这不是我的情况,因为我在我的文件夹中找不到 .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

【问题讨论】:

    标签: java dictionary languagetool


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-09-05
      • 1970-01-01
      • 1970-01-01
      • 2012-06-13
      相关资源
      最近更新 更多