You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by ha...@apache.org on 2018/01/25 01:15:40 UTC

[incubator-mxnet] branch master updated: add three pretrained english fasttext embedding (#9551)

This is an automated email from the ASF dual-hosted git repository.

haibin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git


The following commit(s) were added to refs/heads/master by this push:
     new e57426f  add three pretrained english fasttext embedding (#9551)
e57426f is described below

commit e57426f869167be2562a47b6a80b30ff3251cd5c
Author: Sheng Zha <sz...@users.noreply.github.com>
AuthorDate: Wed Jan 24 17:15:35 2018 -0800

    add three pretrained english fasttext embedding (#9551)
---
 python/mxnet/contrib/text/_constants.py    | 5 ++++-
 tests/python/unittest/test_contrib_text.py | 4 ++--
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/python/mxnet/contrib/text/_constants.py b/python/mxnet/contrib/text/_constants.py
index b69e5d9..77c0d97 100644
--- a/python/mxnet/contrib/text/_constants.py
+++ b/python/mxnet/contrib/text/_constants.py
@@ -341,4 +341,7 @@ FAST_TEXT_FILE_SHA1 = \
      'wiki.diq.vec': '77f3c370d1d77806fafe368cf788af550ff607dd',
      'wiki.zea.vec': 'ee12db26aab3f2b3b2745a298ef414e7aeb5a058',
      'wiki.za.vec': 'e3a0e58bd2e5b1891c71f1f7e37ff71997a20361',
-     'wiki.zu.vec': '4b244b9697a8280e6646842c5fc81bb3a6bc8ec7'}
+     'wiki.zu.vec': '4b244b9697a8280e6646842c5fc81bb3a6bc8ec7',
+     'wiki-news-300d-1M.vec': '11cac9efe6f599e659be182f5766d6fbd5b1cab9',
+     'wiki-news-300d-1M-subword.vec': '717a3058e0ba5ef3cde52c3df0d4f0f60b0a113a',
+     'crawl-300d-2M.vec': '9b556504d099a6c01f3dd76b88775d02cb2f1946'}
diff --git a/tests/python/unittest/test_contrib_text.py b/tests/python/unittest/test_contrib_text.py
index 673f975..5b897c5 100644
--- a/tests/python/unittest/test_contrib_text.py
+++ b/tests/python/unittest/test_contrib_text.py
@@ -781,14 +781,14 @@ def test_composite_embedding_with_two_embeddings():
 
 def test_get_and_pretrain_file_names():
     assert len(text.embedding.get_pretrained_file_names(
-        embedding_name='fasttext')) == 294
+        embedding_name='fasttext')) == 297
 
     assert len(text.embedding.get_pretrained_file_names(embedding_name='glove')) == 10
 
     reg = text.embedding.get_pretrained_file_names(embedding_name=None)
 
     assert len(reg['glove']) == 10
-    assert len(reg['fasttext']) == 294
+    assert len(reg['fasttext']) == 297
 
     assertRaises(KeyError, text.embedding.get_pretrained_file_names, 'unknown$$')
 

-- 
To stop receiving notification emails like this one, please contact
haibin@apache.org.