Containers for IsaNLP library with some spacy models.
187
tchewik/isanlp_spacy:en - uses en_core_web_trf spaCy v3.3.0 model
tchewik/isanlp_spacy:ru - uses ru_core_news_lg spaCy v3.3.0 model
Run $ docker run --rm -p 3353:3333 tchewik/isanlp_spacy:tag
Example pipeline for end-to-end parsing:
ppl = PipelineCommon([
(ProcessorRemote('hostname', 3353, '0'),
['text'],
{'tokens': 'tokens',
'sentences': 'sentences',
'lemma': 'lemma',
'postag': 'postag',
'morph': 'morph',
'syntax_dep_tree': 'syntax_dep_tree',
'entities': 'entities'
}),
])
For pre-tokenized text (here, with razdel tokenizator for Russian)
ppl = PipelineCommon([
(ProcessorRazdel(), ['text'],
{'tokens': 'tokens',
'sentences': 'sentences'}),
(ProcessorRemote('hostname', 3353, '0'),
['tokens', 'sentences'],
{'lemma': 'lemma',
'postag': 'postag',
'morph': 'morph',
'syntax_dep_tree': 'syntax_dep_tree',
'entities': 'entities'
}),
])
Content type
Image
Digest
Size
1.4 GB
Last updated
over 4 years ago
docker pull tchewik/isanlp_spacy:ru