Spaces:
Runtime error
Runtime error
Commit ·
c0258a8
1
Parent(s): b374550
Update topics_extraction.py
Browse files- topics_extraction.py +3 -3
topics_extraction.py
CHANGED
|
@@ -38,9 +38,9 @@ tag_similarModel_path = "word2vec.model" #config['path']['tag_similar_model'] #w
|
|
| 38 |
tag_trigram_path = "tri_phrases.txt"#config['path']['tag_trigram'] # trigram phraser
|
| 39 |
tag_bigram_path = "bi_phrases.txt"#config['path']['tag_bigram'] # bigram phraser
|
| 40 |
|
| 41 |
-
tag_similarModel = Word2Vec.load(
|
| 42 |
-
tag_trigram_phraser = Phraser.load(
|
| 43 |
-
tag_bigram_phraser = Phraser.load(
|
| 44 |
|
| 45 |
# load stopword file
|
| 46 |
file2 = open("stopwords_tag.txt", "r+")
|
|
|
|
| 38 |
tag_trigram_path = "tri_phrases.txt"#config['path']['tag_trigram'] # trigram phraser
|
| 39 |
tag_bigram_path = "bi_phrases.txt"#config['path']['tag_bigram'] # bigram phraser
|
| 40 |
|
| 41 |
+
tag_similarModel = Word2Vec.load("word2vec.model")
|
| 42 |
+
tag_trigram_phraser = Phraser.load("tri_phrases.txt")
|
| 43 |
+
tag_bigram_phraser = Phraser.load("bi_phrases.txt")
|
| 44 |
|
| 45 |
# load stopword file
|
| 46 |
file2 = open("stopwords_tag.txt", "r+")
|