Merge branch 'explosion:master' into master

This commit is contained in:
Renat Shigapov 2021-09-13 08:43:48 +02:00 committed by GitHub
commit d5cc009faf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 4 deletions

View File

@ -56,7 +56,7 @@ def build_tb_parser_model(
non-linearity if use_upper=False.
use_upper (bool): Whether to use an additional hidden layer after the state
vector in order to predict the action scores. It is recommended to set
this to False for large pretrained models such as transformers, and False
this to False for large pretrained models such as transformers, and True
for smaller networks. The upper layer is computed on CPU, which becomes
a bottleneck on larger GPU-based models, where it's also less necessary.
nO (int or None): The number of actions the model will predict between.

View File

@ -795,7 +795,7 @@ if there's no state to be passed through spaCy can just take care of this fo
you. The following two code examples are equivalent:
```python
# Statless component with @Language.factory
# Stateless component with @Language.factory
@Language.factory("my_component")
def create_my_component():
def my_component(doc):

View File

@ -3285,15 +3285,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",