Python Implementation of textcat training example #13789
Unanswered
jpmorris
asked this question in
Help: Coding & Implementations
Replies: 1 comment 1 reply
-
Hi, you could import these directly in the code as follows...
and then define your own definitions...
As far as binary .spacy files are concerned, cli train() command reads config files with references to .spacy binary files, there are no overrides. I hope this helps. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I can't find an example of how to train a textcat model (using the config.cfg even better) using the python API and NOT the CLI. Why do I want to avoid the CLI? Because my data is in mongodb. I'd prefer not to create
*.spacy
files just to do the training (making format from json). I'd rather read and shape from mongdb, train the model and save the model to disk, but write inferences back to mongodb. But all the examples I see are only CLI (with the documentation) I can't find examples of training in python anywhere (I've looked at the code examples and I don't see any decent example). Am I missing some documentation sample code somewehre?Beta Was this translation helpful? Give feedback.
All reactions