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
1 changed files with 4 additions and 2 deletions

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.", "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.", "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", "github": "asyml/forte",
"pip": "forte.spacy torch", "pip": "forte.spacy stave torch",
"code_example": [ "code_example": [
"from forte.spacy import SpacyProcessor", "from fortex.spacy import SpacyProcessor",
"from forte.processors.stave import StaveProcessor",
"from forte import Pipeline", "from forte import Pipeline",
"from forte.data.readers import StringReader", "from forte.data.readers import StringReader",
"", "",
"pipeline = Pipeline()", "pipeline = Pipeline()",
"pipeline.set_reader(StringReader())", "pipeline.set_reader(StringReader())",
"pipeline.add(SpacyProcessor())", "pipeline.add(SpacyProcessor())",
"pipeline.add(StaveProcessor())",
"pipeline.run('Running SpaCy with Forte!')" "pipeline.run('Running SpaCy with Forte!')"
], ],
"code_language": "python", "code_language": "python",