Skip to content

Commit

Permalink
Update transformer model details [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
ines committed Oct 8, 2019
1 parent dd30d3e commit 8f76d6c
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 13 deletions.
2 changes: 2 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,6 @@ redirects = [
{from = "/api/sentencesegmenter", to="/api/sentencizer"},
{from = "/universe", to = "/universe/project/:id", query = {id = ":id"}, force = true},
{from = "/universe", to = "/universe/category/:category", query = {category = ":category"}, force = true},
# Renamed universe projects
{from = "/universe/project/spacy-pytorch-transformers", to = "/universe/project/spacy-transformers", force = true}
]
10 changes: 5 additions & 5 deletions website/meta/languages.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@
"en_core_web_md",
"en_core_web_lg",
"en_vectors_web_lg",
"en_pytt_bertbaseuncased_lg",
"en_pytt_robertabase_lg",
"en_pytt_distilbertbaseuncased_lg",
"en_pytt_xlnetbasecased_lg"
"en_trf_bertbaseuncased_lg",
"en_trf_robertabase_lg",
"en_trf_distilbertbaseuncased_lg",
"en_trf_xlnetbasecased_lg"
],
"example": "This is a sentence.",
"has_examples": true
},
{
"code": "de",
"name": "German",
"models": ["de_core_news_sm", "de_core_news_md", "de_pytt_bertbasecased_lg"],
"models": ["de_core_news_sm", "de_core_news_md", "de_trf_bertbasecased_lg"],
"example": "Dies ist ein Satz.",
"has_examples": true
},
Expand Down
16 changes: 8 additions & 8 deletions website/meta/universe.json
Original file line number Diff line number Diff line change
Expand Up @@ -1675,21 +1675,21 @@
}
},
{
"id": "spacy-pytorch-transformers",
"title": "spacy-pytorch-transformers",
"id": "spacy-transformers",
"title": "spacy-transformers",
"slogan": "spaCy pipelines for pretrained BERT, XLNet and GPT-2",
"description": "This package provides spaCy model pipelines that wrap [Hugging Face's `pytorch-transformers`](https://github.com/huggingface/pytorch-transformers) package, so you can use them in spaCy. The result is convenient access to state-of-the-art transformer architectures, such as BERT, GPT-2, XLNet, etc.",
"github": "explosion/spacy-pytorch-transformers",
"url": "https://explosion.ai/blog/spacy-pytorch-transformers",
"pip": "spacy-pytorch-transformers",
"description": "This package provides spaCy model pipelines that wrap [Hugging Face's `transformers`](https://github.com/huggingface/transformers) package, so you can use them in spaCy. The result is convenient access to state-of-the-art transformer architectures, such as BERT, GPT-2, XLNet, etc.",
"github": "explosion/spacy-transformers",
"url": "https://explosion.ai/blog/spacy-transformers",
"pip": "spacy-transformers",
"category": ["pipeline", "models", "research"],
"code_example": [
"import spacy",
"",
"nlp = spacy.load(\"en_pytt_bertbaseuncased_lg\")",
"nlp = spacy.load(\"en_trf_bertbaseuncased_lg\")",
"doc = nlp(\"Apple shares rose on the news. Apple pie is delicious.\")",
"print(doc[0].similarity(doc[7]))",
"print(doc._.pytt_last_hidden_state.shape)"
"print(doc._.trf_last_hidden_state.shape)"
],
"author": "Explosion",
"author_links": {
Expand Down
1 change: 1 addition & 0 deletions website/src/templates/models.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const MODEL_META = {
dep: 'Vocabulary, syntax',
ent: 'Named entities',
pytt: 'PyTorch Transformers',
trf: 'Transformers',
vectors: 'Word vectors',
web: 'written text (blogs, news, comments)',
news: 'written text (news, media)',
Expand Down

0 comments on commit 8f76d6c

Please sign in to comment.