Skip to content

Commit

Permalink
Update run.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Marzieh Fadaee authored Sep 3, 2017
1 parent 368c3d0 commit 030f27a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions run.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/bash

corpus="/datastore/marzieh/to_publish_TSE/sample.txt"
TM_output_path="/datastore/marzieh/to_publish_TSE/TM"
EM_output_path="/datastore/marzieh/to_publish_TSE/"
corpus="./sample.txt"
TM_output_path="./TM"
EM_output_path="./Embeddings"

# learn topics from the corpus
./topicmodelling/run_topicmodel.sh $corpus $TM_output_path
Expand All @@ -21,9 +21,9 @@ python ./topicsensitive_word2vec/scripts/extract_neighbours_htle.py $EM_output_p
./topicsensitive_word2vec/word2vecf_HTLEadd -train $EM_output_path/pairs.txt -wvocab $EM_output_path/wv -cvocab $EM_output_path/cv -output $EM_output_path/vectors.txt -size 100 -negative 6 -threads 1 -dumpcv $EM_output_path/vectors.syn1neg.txt -dumpcv2 $EM_output_path/vectors.gen.txt -iter 15

# train embeddings: STLE
#python ./topicsensitive_word2vec/scripts/extract_neighbours_stle.py $EM_output_path/freq.txt $EM_output_path/labeled_sample.txt $TM_output_path/topicsindocs.txt > $EM_output_path/pairs.txt
#./topicsensitive_word2vec/count_and_filter -train $EM_output_path/pairs.txt -cvocab $EM_output_path/cv -wvocab $EM_output_path/wv -min-count 100
#./topicsensitive_word2vec/word2vecf_STLE -train $EM_output_path/pairs.txt -wvocab $EM_output_path/wv -cvocab $EM_output_path/cv -output $EM_output_path/vectors.txt -size 100 -negative 6 -threads 1 -dumpcv $EM_output_path/vectors.syn1neg.txt -iter 15
python ./topicsensitive_word2vec/scripts/extract_neighbours_stle.py $EM_output_path/freq.txt $EM_output_path/labeled_sample.txt $TM_output_path/topicsindocs.txt > $EM_output_path/pairs.txt
./topicsensitive_word2vec/count_and_filter -train $EM_output_path/pairs.txt -cvocab $EM_output_path/cv -wvocab $EM_output_path/wv -min-count 100
./topicsensitive_word2vec/word2vecf_STLE -train $EM_output_path/pairs.txt -wvocab $EM_output_path/wv -cvocab $EM_output_path/cv -output $EM_output_path/vectors.txt -size 100 -negative 6 -threads 1 -dumpcv $EM_output_path/vectors.syn1neg.txt -iter 15

# inference

Expand Down

0 comments on commit 030f27a

Please sign in to comment.