SpaCy
Industrial-Strength Natural Language Processing.
Install Plugin
deepnlpf --install spacy
To install other language models see here.
Pipeline
{
"lang": "en",
"tools": {
"spacy": {
"processors": [
"pos",
"tag",
"shape",
"is_alpha",
"is_title",
"like_num",
"label",
"noun_chunks"
]
}
}
}
---
lang: en
tools:
- spacy:
processors:
- pos
- tag
- shape
- is_alpha
- is_title
- like_num
- label
- noun_chunks
Example
from deepnlpf.pipeline import Pipeline
path_dataset = "<path_dir_dataset>"
path_pipeline = "<path_file>/pipeline.json"
nlp = Pipeline(_input=sentence, pipeline=path_pipeline, _output='file')
annotation = nlp.annotate()