New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why does training take so long? #1232
Comments
Training is the heavy process that trains the neuronal network which is "behind the scenes", so in fact the exact idea is to do training once and then store the result and read it when using - then training is not needed. Also I think the current nlp.js do not provide ways for an "iterative training" which retrains the neuronal network after a new sentence is added or such - it would empty the neuronal network and train it again from scratch. |
If you look at the time for training each epoch, it says 0ms. If you provide your code, we can investigate what connector are you using, and show you how to chat with the bot. |
Hi @ethindp,
|
Hi all, |
Hi @ethindp , it depends on your use case, generally you'll want to use the answers. Anyway, by having a look at the content of each one, you should be able to determine which one you need to use. |
I closed this at seems a topic already solved. |
So, I'm not really sure this is a question for the issue template, and I'm not sure where to go (there doesn't really seem to be a discussion forum, matrix room, etc., unless I missed it). I'm also unsure if it's just the very little data I provided or what, but here's what I'm trying to do.
I'm building a game with a friend, and we'd like to introduce a form of NLP into the game to make conversations with NPCs (non-player characters) feel more natural. I haven't tried a corpus, just a document/answer system. I've added one answer and document, mainly because I was hoping that we would be able to dynamically train the model as we go, without needing to update the corpus and re-add it to the manager. However, calling
train
on the manager causes it to just hang. It prints the training stats, like this:At epoch 36 it just stops. Nothing else is printed. I'm new to NLP so I might be misusing the library. Using a corpus would be nice but looking at the NLP code it looks as though it requires the corpus to be in a file, and not something that I can just pass as a JSON string. Am I misunderstanding how all this works and trying to do something that isn't possible (or just isn't possible right now)? Or should I try a corpus instead? If I should try a corpus, how would that change my usage of the library? (That is, would I just load the corpus and then go straight to processing text, or would I still add documents and answers?)
The text was updated successfully, but these errors were encountered: