dpelle / vim-LanguageTool

A vim plugin for the LanguageTool grammar checker
280 stars 28 forks source link

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

Open kkew3 opened 5 years ago

kkew3 commented 5 years ago

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 commented 5 years ago

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

vigoux commented 5 years ago

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

zuxfoucault commented 4 years ago

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)?

bratekarate commented 3 years ago

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