PyWSD
Python Implementations of Word Sense Disambiguation (WSD) Technologies.
Install Plugin
deepnlpf --install pywsd
Suport Language
English: en
Pipeline
{
"lang": "en",
"tools": {
"pywsd": {
"processors": [
"wsd"
]
}
}
}
---
lang: en
tools:
- pywsd:
processors:
- wsd
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()