From 4fdcec1041c8f6620fb9afc168eafcc0950599a2 Mon Sep 17 00:00:00 2001 From: Martino Mensio Date: Tue, 2 Jun 2020 15:39:40 +0100 Subject: [PATCH 1/3] adding spacy-universal-sentence-encoder --- website/meta/universe.json | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/website/meta/universe.json b/website/meta/universe.json index 58be719edd8..7ee2c05ee6d 100644 --- a/website/meta/universe.json +++ b/website/meta/universe.json @@ -1,5 +1,28 @@ { "resources": [ + { + "id": "spacy-universal-sentence-encoder", + "title": "SpaCy - Universal Sentence Encoder", + "slogan": "Make Make use of Google's Universal Sentence Encoder directly within SpaCy", + "description": "This library lets you use Universal Sentence Encoder embeddings of Docs, Spans and Tokens directly from TensorFlow Hub", + "github": "MartinoMensio/spacy-universal-sentence-encoder-tfhub", + "code_example": [ + "import spacy_universal_sentence_encoder", + "nlp = spacy_universal_sentence_encoder.load_model('en_use_lg')", + "# get two documents", + "doc_1 = nlp('Hi there, how are you?')", + "doc_2 = nlp('Hello there, how are you doing today?')", + "# use the similarity method that is based on the vectors, on Doc, Span or Token", + "print(doc_1.similarity(doc_2[0:7]))" + ], + "category": ["models", "pipeline"], + "author": "Martino Mensio", + "author_links": { + "twitter": "MartinoMensio", + "github": "MartinoMensio", + "website": "https://martinomensio.github.io" + } + }, { "id": "whatlies", "title": "whatlies", From 92a524669f0e8ec98b4adbf5a17d46ce5d37fce7 Mon Sep 17 00:00:00 2001 From: Martino Mensio Date: Tue, 2 Jun 2020 15:40:09 +0100 Subject: [PATCH 2/3] update affiliation --- .github/contributors/MartinoMensio.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/contributors/MartinoMensio.md b/.github/contributors/MartinoMensio.md index 1cd32d62245..27e4536994b 100644 --- a/.github/contributors/MartinoMensio.md +++ b/.github/contributors/MartinoMensio.md @@ -99,8 +99,8 @@ mark both statements: | Field | Entry | |------------------------------- | -------------------- | | Name | Martino Mensio | -| Company name (if applicable) | Polytechnic University of Turin | -| Title or role (if applicable) | Student | +| Company name (if applicable) | The Open University | +| Title or role (if applicable) | PhD Student | | Date | 17 November 2017 | | GitHub username | MartinoMensio | | Website (optional) | https://martinomensio.github.io/ | From 48817bbfb444a12d17de4eb946cd28100500c2b6 Mon Sep 17 00:00:00 2001 From: Martino Mensio Date: Tue, 2 Jun 2020 15:58:46 +0100 Subject: [PATCH 3/3] updated code example --- website/meta/universe.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/website/meta/universe.json b/website/meta/universe.json index 7ee2c05ee6d..2c74a29641a 100644 --- a/website/meta/universe.json +++ b/website/meta/universe.json @@ -3,11 +3,12 @@ { "id": "spacy-universal-sentence-encoder", "title": "SpaCy - Universal Sentence Encoder", - "slogan": "Make Make use of Google's Universal Sentence Encoder directly within SpaCy", + "slogan": "Make use of Google's Universal Sentence Encoder directly within SpaCy", "description": "This library lets you use Universal Sentence Encoder embeddings of Docs, Spans and Tokens directly from TensorFlow Hub", "github": "MartinoMensio/spacy-universal-sentence-encoder-tfhub", "code_example": [ "import spacy_universal_sentence_encoder", + "load one of the models: ['en_use_md', 'en_use_lg', 'xx_use_md', 'xx_use_lg']", "nlp = spacy_universal_sentence_encoder.load_model('en_use_lg')", "# get two documents", "doc_1 = nlp('Hi there, how are you?')",