Skip to content

Commit

Permalink
version 0.3.1
Browse files Browse the repository at this point in the history
added compatibility down to spacy==2.1
relates #7
  • Loading branch information
MartinoMensio committed Aug 8, 2020
1 parent 11ec08f commit bf78a05
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 20 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ Or you can install the following pre-packaged models with pip:

| model name | source | pip package |
|------------|--------|---|
| en_use_md | https://tfhub.dev/google/universal-sentence-encoder | `pip install https://github.com/MartinoMensio/spacy-universal-sentence-encoder/releases/download/v0.3.0/en_use_md-0.3.0.tar.gz#en_use_md-0.3.0` |
| en_use_lg | https://tfhub.dev/google/universal-sentence-encoder-large | `pip install https://github.com/MartinoMensio/spacy-universal-sentence-encoder/releases/download/v0.3.0/en_use_lg-0.3.0.tar.gz#en_use_lg-0.3.0` |
| xx_use_md | https://tfhub.dev/google/universal-sentence-encoder-multilingual | `pip install https://github.com/MartinoMensio/spacy-universal-sentence-encoder/releases/download/v0.3.0/xx_use_md-0.3.0.tar.gz#xx_use_md-0.3.0` |
| xx_use_lg | https://tfhub.dev/google/universal-sentence-encoder-multilingual-large | `pip install https://github.com/MartinoMensio/spacy-universal-sentence-encoder/releases/download/v0.3.0/xx_use_lg-0.3.0.tar.gz#xx_use_lg-0.3.0` |
| en_use_md | https://tfhub.dev/google/universal-sentence-encoder | `pip install https://github.com/MartinoMensio/spacy-universal-sentence-encoder/releases/download/v0.3.1/en_use_md-0.3.1.tar.gz#en_use_md-0.3.1` |
| en_use_lg | https://tfhub.dev/google/universal-sentence-encoder-large | `pip install https://github.com/MartinoMensio/spacy-universal-sentence-encoder/releases/download/v0.3.1/en_use_lg-0.3.1.tar.gz#en_use_lg-0.3.1` |
| xx_use_md | https://tfhub.dev/google/universal-sentence-encoder-multilingual | `pip install https://github.com/MartinoMensio/spacy-universal-sentence-encoder/releases/download/v0.3.1/xx_use_md-0.3.1.tar.gz#xx_use_md-0.3.1` |
| xx_use_lg | https://tfhub.dev/google/universal-sentence-encoder-multilingual-large | `pip install https://github.com/MartinoMensio/spacy-universal-sentence-encoder/releases/download/v0.3.1/xx_use_lg-0.3.1.tar.gz#xx_use_lg-0.3.1` |


## Usage
Expand Down Expand Up @@ -87,7 +87,7 @@ spacy_universal_sentence_encoder.create_from(nlp, 'en_use_lg')

To build and upload
```bash
VERSION=0.3.0
VERSION=0.3.1
# build the standalone models (17)
./build_models.sh
# build the archive at dist/spacy_universal_sentence_encoder-${VERSION}.tar.gz
Expand Down
2 changes: 1 addition & 1 deletion build_models.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
set -e

VERSION=0.3.0
VERSION=0.3.1

# for every model
for MODEL_NAME in en_use_md en_use_lg xx_use_md xx_use_lg
Expand Down
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[metadata]
version = 0.3.0
version = 0.3.1
description = SpaCy models for using Universal Sentence Encoder from TensorFlow Hub
description-file = README.md
url = https://github.com/MartinoMensio/spacy-universal-sentence-encoder
Expand All @@ -11,7 +11,7 @@ include_package_data = true
install_requires =
tensorflow==2.2.0
tensorflow-text>=2.2.0,<2.3.0 # for xx_use_lg
spacy>=2.3.0,<2.4.0
spacy>=2.1.0,<2.4.0
tensorflow-hub

[options.entry_points]
Expand Down
6 changes: 3 additions & 3 deletions spacy_universal_sentence_encoder/meta/en_use_lg.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"lang": "en",
"name": "use_lg",
"version": "0.3.0",
"spacy_version": ">=2.3,<2.4",
"version": "0.3.1",
"spacy_version": ">=2.1,<2.4",
"description": "TensorFlow Hub wrapper for Universal Sentence Encoder",
"author": "Martino Mensio",
"email": "[email protected]",
"url": "https://github.com/MartinoMensio/spacy-universal-sentence-encoder",
"license": "MIT",
"requirements": [
"spacy_universal_sentence_encoder==0.3.0"
"spacy_universal_sentence_encoder==0.3.1"
],
"sources": [{
"name": "Universal Sentence Encoder - Large",
Expand Down
6 changes: 3 additions & 3 deletions spacy_universal_sentence_encoder/meta/en_use_md.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"lang": "en",
"name": "use_md",
"version": "0.3.0",
"spacy_version": ">=2.3,<2.4",
"version": "0.3.1",
"spacy_version": ">=2.1,<2.4",
"description": "TensorFlow Hub wrapper for Universal Sentence Encoder",
"author": "Martino Mensio",
"email": "[email protected]",
"url": "https://github.com/MartinoMensio/spacy-universal-sentence-encoder",
"license": "MIT",
"requirements": [
"spacy_universal_sentence_encoder==0.3.0"
"spacy_universal_sentence_encoder==0.3.1"
],
"sources": [{
"name": "Universal Sentence Encoder",
Expand Down
6 changes: 3 additions & 3 deletions spacy_universal_sentence_encoder/meta/xx_use_lg.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"lang": "xx",
"name": "use_lg",
"version": "0.3.0",
"spacy_version": ">=2.3,<2.4",
"version": "0.3.1",
"spacy_version": ">=2.1,<2.4",
"description": "TensorFlow Hub wrapper for Universal Sentence Encoder",
"author": "Martino Mensio",
"email": "[email protected]",
"url": "https://github.com/MartinoMensio/spacy-universal-sentence-encoder",
"license": "MIT",
"requirements": [
"spacy_universal_sentence_encoder==0.3.0"
"spacy_universal_sentence_encoder==0.3.1"
],
"sources": [{
"name": "Universal Sentence Encoder Multilingual - Large",
Expand Down
6 changes: 3 additions & 3 deletions spacy_universal_sentence_encoder/meta/xx_use_md.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"lang": "xx",
"name": "use_md",
"version": "0.3.0",
"spacy_version": ">=2.3,<2.4",
"version": "0.3.1",
"spacy_version": ">=2.1,<2.4",
"description": "TensorFlow Hub wrapper for Universal Sentence Encoder",
"author": "Martino Mensio",
"email": "[email protected]",
"url": "https://github.com/MartinoMensio/spacy-universal-sentence-encoder",
"license": "MIT",
"requirements": [
"spacy_universal_sentence_encoder==0.3.0"
"spacy_universal_sentence_encoder==0.3.1"
],
"sources": [{
"name": "Universal Sentence Encoder Multilingual",
Expand Down

0 comments on commit bf78a05

Please sign in to comment.