未验证 提交 6ef01ddb 编写于 作者: J Jack Zhou 提交者: GitHub

fix url bug for word2vec

fix url bug for word2vec
上级 7c2e0190
......@@ -43,3 +43,10 @@ PaddleNLP提供多个开源的预训练Embedding模型,用户仅需在使用`p
## 英文词向量
待更新。
## 致谢
- 感谢 [Chinese-Word-Vectors](https://github.com/Embedding/Chinese-Word-Vectors)提供Word2Vec中文Embedding来源。
## 参考论文
- Li, Shen, et al. "Analogical reasoning on chinese morphological and semantic relations." arXiv preprint arXiv:1805.06504 (2018).
- Qiu, Yuanyuan, et al. "Revisiting correlations between intrinsic and extrinsic evaluations of word embeddings." Chinese Computational Linguistics and Natural Language Processing Based on Naturally Annotated Big Data. Springer, Cham, 2018. 209-221.
......@@ -43,8 +43,6 @@ class TokenEmbedding(nn.Embedding):
unknown_token_vector=None,
extended_vocab_path=None,
trainable=True):
embedding_name = embedding_name.lower()
vector_path = osp.join(EMBEDDING_HOME, embedding_name + ".npz")
if not osp.exists(vector_path):
# download
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
新手
引导
客服 返回
顶部