mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
Update example code of forte (#9175)
Co-authored-by: Suqi Sun <suqi.sun@petuum.com>
This commit is contained in:
parent
462b009648
commit
ee28aac68e
|
@ -3259,15 +3259,17 @@
|
|||
"slogan": "Forte is a toolkit for building Natural Language Processing pipelines, featuring cross-task interaction, adaptable data-model interfaces and composable pipelines.",
|
||||
"description": "Forte provides a platform to assemble state-of-the-art NLP and ML technologies in a highly-composable fashion, including a wide spectrum of tasks ranging from Information Retrieval, Natural Language Understanding to Natural Language Generation.",
|
||||
"github": "asyml/forte",
|
||||
"pip": "forte.spacy torch",
|
||||
"pip": "forte.spacy stave torch",
|
||||
"code_example": [
|
||||
"from forte.spacy import SpacyProcessor",
|
||||
"from fortex.spacy import SpacyProcessor",
|
||||
"from forte.processors.stave import StaveProcessor",
|
||||
"from forte import Pipeline",
|
||||
"from forte.data.readers import StringReader",
|
||||
"",
|
||||
"pipeline = Pipeline()",
|
||||
"pipeline.set_reader(StringReader())",
|
||||
"pipeline.add(SpacyProcessor())",
|
||||
"pipeline.add(StaveProcessor())",
|
||||
"pipeline.run('Running SpaCy with Forte!')"
|
||||
],
|
||||
"code_language": "python",
|
||||
|
|
Loading…
Reference in New Issue
Block a user