SEMAFOR
SEMAFOR: Semantic Analysis of Frame Representations
Install Plugin
deepnlpf --install semafor
Suport Language
English: en
Pipeline
{
"lang": "en",
"tools": {
"semafor": {
"processors": [
"frame_semantic_parsing"
]
}
}
}
---
lang: en
tools:
- semafor:
processors:
- frame_semantic_parsing
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()