vim-LanguageTool icon indicating copy to clipboard operation
vim-LanguageTool copied to clipboard

Option to use fasttext and local n-gram language model?

Open kkew3 opened this issue 5 years ago • 4 comments

Hi. I have languagetool installed. According to java -jar languagetool-commandline.jar --help, there are several options --fasttext-model, --fasttext-binary and --lanugagemodel that extend the ability of languagetool. However, I found no vim option (at least in README) to specify these command line options. Any help is appreciated!

kkew3 avatar Aug 10 '19 02:08 kkew3

Probably I can add manually to LanguageTool.vim:256?

kkew3 avatar Aug 10 '19 02:08 kkew3

Hi, I think that it can be a hack. But adding a g:languagetool_command_options options might be better.

vigoux avatar Aug 14 '19 09:08 vigoux

Thanks for pointing this out! I tried to add the fasttex and ngram but I was wondering what's the benefit of incorporate those models in Vim mode (the way it worked with Vim)?

zuxfoucault avatar May 30 '20 14:05 zuxfoucault

I don't know how this plugin works in detail, but by including an n-gram language model, there are normally more results from LanguageTool based on the (large) n-gram model. More info here: https://www.google.com/search?client=firefox-b-d&q=ngram+languagetool

bratekarate avatar Sep 19 '20 16:09 bratekarate