Skip to content

Commit 0f62ae3

Browse files
author
peace195
committed
2014 laptops domain parameters
1 parent fcbddea commit 0f62ae3

File tree

5 files changed

+4
-6
lines changed

5 files changed

+4
-6
lines changed
8.22 MB
Binary file not shown.

ckpt/se-apect-2014-lap.ckpt.index

742 Bytes
Binary file not shown.

ckpt/se-apect-2014-lap.ckpt.meta

6.45 MB
Binary file not shown.

code/sa_aspect_oop.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,8 +353,8 @@ def main():
353353
seq_max_len = 35
354354
nb_linear_inside = 512
355355
else:
356-
seq_max_len = 43
357-
nb_linear_inside = 512
356+
seq_max_len = 42
357+
nb_linear_inside = 256
358358

359359

360360
flag_word2vec = False

code/utils.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def load_embedding(domain, data_dir, flag_addition_corpus, flag_word2vec, flag_u
3030
continue
3131

3232
if (flag_word2vec):
33-
os.system('cd ../fastText && ./fasttext cbow -input ../data/' + domain + '_corpus_for_word2vec.txt -output ../data/' + domain + '_cbow_final -dim 100 -minCount 0 -epoch 2000')
33+
os.system('cd ../fastText && ./fasttext cbow -input ../data/' + domain + '_corpus_for_word2vec.txt -output ../data/' + domain + '_cbow_final_2014 -dim 100 -minCount 0 -epoch 2000')
3434

3535
sswe = defaultdict(list)
3636
if (flag_use_sentiment_embedding):
@@ -43,9 +43,7 @@ def load_embedding(domain, data_dir, flag_addition_corpus, flag_word2vec, flag_u
4343
f_se.close()
4444

4545
f_vec = codecs.open('../data/' + domain + '_cbow_final_2014.vec', 'r', 'utf-8')
46-
# f_vec = codecs.open('../data/glove.twitter.27B.100d.txt', 'r', 'utf-8')
47-
# f_vec = codecs.open('../data/skipgram.wiki.simple.300d.vec', 'r', 'utf-8')
48-
46+
4947
idx = 0
5048
for line in f_vec:
5149
if len(line) < 50:

0 commit comments

Comments
 (0)