Update example code of forte (#9175)

Co-authored-by: Suqi Sun <suqi.sun@petuum.com>
This commit is contained in:
mylibrar 2021-09-11 00:13:13 -04:00 committed by Paul O'Leary McCann
parent 721f4554c8
commit d621df6422

View File

@ -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",