Packaging nlp with coreferee #11857
-
Hello, can someone help with thoughts on how I may able to package a nlp object installed coreferee(https://github.com/explosion/coreferee) Environment Modelscoreferee@git+https://github.com/explosion/coreferee.git@v1.3.0 writing nlp object to disk ` snlp = spacy.load("en_core_web_lg") packaging the nlp on the disk Available factories: attribute_ruler, tok2vec, merge_noun_chunks, merge_entities, merge_subtokens, token_splitter, doc_cleaner, parser, beam_parser, lemmatizer, trainable_lemmatizer, entity_linker, ner, beam_ner, entity_ruler, tagger, morphologizer, senter, sentencizer, textcat, spancat, future_entity_ruler, span_ruler, textcat_multilabel, en.lemmatizer |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
It looks like there are a few small improvements needed in
For the
It doesn't look like saving and loading pipelines will currently work for |
Beta Was this translation helpful? Give feedback.
-
Hello, @adrianeboyd Thank you! Able to package only with the default name "en_core_web_trf". Is there a way to package coreferee with a custom package(I have components that am adding and constructing a new pipeline and coreferee is one of them). |
Beta Was this translation helpful? Give feedback.
-
@richardpaulhudson I pip install coreferee using coreferee-model-en@https://github.com/explosion/coreferee/raw/v1.3.0/models/coreferee_model_en.zip. Does it mean configure new you in the config file and zip the whole coreferee_model_en then install the updated corefree_model_en.zip? |
Beta Was this translation helpful? Give feedback.
It looks like there are a few small improvements needed in
coreferee
for loading of non-trf pipelines and entry points. See a few in-progress PRs:For the
en_core_web_trf
-based model, I think thatspacy package
would currently work if you add the optionspacy package -c code.py
wherecode.py
contains only:It doesn't look like saving and loading pipelines will currently work for
md/lg
pipelines, so you'd need to wait for the next coreferee release.