![](/img/trans.png)
[英]How to create a tool/GUI Builder like this in C# java or any language
[英]Create a dictionary on Language Tool
我正在嘗試創建法語詞典以在“語言工具拼寫檢查器”上使用它。 代碼本身似乎是創建代碼的,但這不是我的情況,因為我無法在文件夾中找到.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
這是LanguageTool中的錯誤,已在每晚的版本中修復: http : //forum.languagetool.org/t/create-a-dictionary-for-french-language/852/21?u=dnaber
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.