I have been trying out the library and it works nicely. The main problems are related to the sentiment not always being correct and, more importantly, that the language guesser fails pretty often.
I read on other tickets that it's possible to train the system to be able to improve the results for those two.
And I have the following snippet as base code for language guessing:
const { Language } = require('node-nlp');
const language = new Language();
const guess = language.guess(
'When the night has come And the land is dark And the moon is the only light we see',
);
console.log(guess[0]);
How would I be able to train them in such a way that "I donot know" doesn't get guessed as "Italian", "It is wonderful" doesn't get guessed as "German", and that the sentiment matches better the actual text?
Hello,
I have been trying out the library and it works nicely. The main problems are related to the sentiment not always being correct and, more importantly, that the language guesser fails pretty often. I read on other tickets that it's possible to train the system to be able to improve the results for those two.
How would it work?
As an example, say I have the following corpuses:
And I have the following snippet as base code for language guessing:
and the following for sentiment analysis:
How would I be able to train them in such a way that "I donot know" doesn't get guessed as "Italian", "It is wonderful" doesn't get guessed as "German", and that the sentiment matches better the actual text?