Re: Language Model contribution

2016-02-18 Thread Tommaso Teofili
Hi Jörn, good you're ok with the LanguageModel API; currently the only existing implementation is the NGramLanguageModel. In order to create such a model you add ngrams to it as in NGramModel: > LanguageModel languageModel = new NGramLanguageModel(*3*); // trigram language model >

Re: Language Model contribution

2016-02-17 Thread Joern Kottmann
Ups, confused the language model you were working on with language detection. I think the interface is good as it is. Jörn On Wed, Feb 17, 2016 at 10:00 AM, Joern Kottmann wrote: > Hello, > > I saw the language model commit. Thanks for contributing that! > > Would it be

Language Model contribution

2016-02-17 Thread Joern Kottmann
Hello, I saw the language model commit. Thanks for contributing that! Would it be possible to get a short introduction to it? The interface is supposed to take a StringList. Wouldn't it be better if a user can just pass in a String instead? Otherwise he has to worry about tokenizing a string in