Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
modify word2vec
Browse files Browse the repository at this point in the history
  • Loading branch information
Zrachel committed Dec 23, 2016
1 parent e77597f commit df878e7
Show file tree
Hide file tree
Showing 10 changed files with 272 additions and 146 deletions.
408 changes: 266 additions & 142 deletions word2vec/README.md

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions word2vec/data/getdata.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/bash

wget http://www.fit.vutbr.cz/~imikolov/rnnlm/simple-examples.tgz
tar -zxf simple-examples.tgz
echo `pwd`/simple-examples/data/ptb.train.txt > train.list
Expand Down
Binary file added word2vec/image/cbow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added word2vec/image/sentence_emb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added word2vec/image/skipgram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions word2vec/caldis.py → word2vec/src/calculate_dis.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/bin/env python
# Copyright (c) 2016 Baidu, Inc. All Rights Reserved
# Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -13,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.


"""
Example:
python caldis.py DICTIONARYTXT FEATURETXT
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions word2vec/paraconvert.py → word2vec/src/format_convert.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/bin/env python
# Copyright (c) 2016 Baidu, Inc. All Rights Reserved
# Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -13,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.


"""
Example:
python paraconvert.py --b2t -i INPUT -o OUTPUT -d DIM
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit df878e7

Please sign in to comment.