Sign inSign up

tchewik/isanlp_spacy

By tchewik

•Updated over 4 years ago

Containers for IsaNLP library with some spacy models.

Image
0

187

tchewik/isanlp_spacy repository overview

⁠Tags:

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

⁠Usage examples:

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'
     }),
])

Tag summary

Content type

Image

Digest

Size

1.4 GB

Last updated

over 4 years ago

docker pull tchewik/isanlp_spacy:ru