-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Pickle support for matcher object #930
Comments
Why can't you just reuse the function that adds the entities on load? Like, presumably you have something like:
Why is this worse than:
There's no real "training" of the matcher. Once the pickle function is added, it'll just readd the patterns to the matcher, in the same way your add funtion will. |
I was looking to ship it so it would start matching right out the box, but since there isn't any real training and hence no real time taken, I guess it's perfectly fine to do it like you mentioned.
Is there any documentation available for all the attributes available to the matcher? On an unrelated topic, if I wanted to add a new entity through GoldParse, what is the minimum number of training examples you would recommend. I've seen around 5000 examples mentioned somewhere on the repo. |
Documentation for the attributes is still pending unfortunately. Also, "on an unrelated topic" isn't great on the tracker :). Life is a little easier if we keep the threads well organised. I've written some things about this in other NER threads, or you can ask for tips on the gitter. |
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. |
I'm adding a number of entities and patterns(about 2000) to the matcher and this number will keep increasing. I've tried a number of ways(Pickle, dill etc.) to pickle this trained matcher so I can avoid retraining every time, but nothing has worked out so far.
I know that support for pickle is lined up for version 2.0, but is there any workaround right now?
My Environment
The text was updated successfully, but these errors were encountered: