Skip to content
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

integrate chatterbot with spacy instead of nltk? #1746

Open
brightening-eyes opened this issue Jun 6, 2019 · 9 comments
Open

integrate chatterbot with spacy instead of nltk? #1746

brightening-eyes opened this issue Jun 6, 2019 · 9 comments
Assignees

Comments

@brightening-eyes
Copy link

hi,
spacy is a very fast library for nlp which has all the features of nltk.
it is written in cython which make it so much faster.
it also has support for 49 languages, and more can be implemented.
why not use it instead of nltk?

@Orfeous
Copy link

Orfeous commented Jun 6, 2019

Hello,

It's in progress and some parts of the core already using spacy see more in #1684

Also releases/1.1.0a1

@brightening-eyes
Copy link
Author

what about stop words etc?
because spacy has these

@Orfeous
Copy link

Orfeous commented Jun 6, 2019

it's not my call, I'm just a user :)

@gunthercox is the author, he could answer your question.

@gunthercox
Copy link
Owner

I agree, Spacy has a number of advantages. I'm aiming to leverage it's capabilities in the 1.1.x release series of ChatterBot.

@brightening-eyes
Copy link
Author

maybe for BestMatch, we can use word vectors to find the match.
it is more reliable.

@brightening-eyes
Copy link
Author

also for loading models, It should be possible to load the models explicitly. not just with a language model. for example, we can use "language_model" in the **kwargs argument to load the language model. because I'm using PyInstaller to make an executable, and It can't use the shortcut links, instead it can use packages without any problem. for example, "en_core_web_lg" instead of only "en"

@MohamedA95
Copy link

I agree, Spacy has a number of advantages. I'm aiming to leverage it's capabilities in the 1.1.x release series of ChatterBot.

How can we help ?

@gunthercox
Copy link
Owner

@habi3000 The changes are mostly finished. At this point I'm just waiting for various bugs related to the changes to be ironed out, such as #1736.

@brightening-eyes
Copy link
Author

@gunthercox instead of loading the spacy models with spacy.load, i recommend to load them with imports to make them available to PyInstaller and such applications for making executables. spacy.load('en') loads the module with a shortcut link which is not support on PyInstaller and it is easy to change them in chatterbot.

@gunthercox gunthercox self-assigned this Aug 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants