question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

how to train from corpus when use in the django

See original GitHub issue

I put a train.py in the same file with the manage.py. the code like this from chatterbot import ChatBot from chatterbot.trainers import ChatterBotCorpusTrainer chatbot = ChatBot('Chatterbot',trainer='chatterbot.trainers.CorpusTrainer') trainer = ChatterBotCorpusTrainer(chatbot) trainer.train( 'chatterbot.corpus.chinese' ) I run the train.py first. and run manage.py migrate then run manage.py runserver. But it can’t answer the question right from the corpus.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
WujiangXucommented, May 4, 2019

The current way to achieve training using Django and ChatterBot will require you to build a new view, API endpoint, or custom script/command that takes your data and passes it to the train method of your trainer. (There isn’t anything pre-built for this).

thank you.I use the chatterbot 0.8.7 to ensure that I can use well.

0reactions
lock[bot]commented, Feb 28, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to specify custom corpus path in Django for Chatterbot?
It seems one can use custom corpus json files by specify a path to the location. However, I'm confused by how that is...
Read more >
Training Django ChatterBot · Issue #1653 - GitHub
I found a way to train Django chatterbot. I train it using ChatterBotCorpusTrainer but haven't integrated it into Django yet.
Read more >
Training — ChatterBot 1.0.8 documentation - Read the Docs
ChatterBot comes with a corpus data and utility module that makes it easy to quickly train your bot to communicate. To do so,...
Read more >
Training Pipelines & Models · spaCy Usage Documentation
When converting training data for use in spaCy, the main thing is to create Doc objects just like the results you want as...
Read more >
How to Train a BERT Model From Scratch
For those of you that may not have used transformers models (eg what ... In terms of data for training a transformer model,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found