Skip to content

Commit

Permalink
Fixed path to load polarity data
Browse files Browse the repository at this point in the history
  • Loading branch information
Valerio Maggio committed Jun 21, 2017
1 parent cfb080c commit 92ecbb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 6. AutoEncoders and Embeddings/word_embedding.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ def load_data_and_labels():
Returns split sentences and labels.
"""
# Load data from files
positive_examples = list(open("./data/word_embeddings/rt-polarity.pos", encoding='ISO-8859-1').readlines())
positive_examples = list(open("../data/word_embeddings/rt-polarity.pos", encoding='ISO-8859-1').readlines())
positive_examples = [s.strip() for s in positive_examples]
negative_examples = list(open("./data/word_embeddings/rt-polarity.neg", encoding='ISO-8859-1').readlines())
negative_examples = list(open("../data/word_embeddings/rt-polarity.neg", encoding='ISO-8859-1').readlines())
negative_examples = [s.strip() for s in negative_examples]
# Split by words
x_text = positive_examples + negative_examples
Expand Down

0 comments on commit 92ecbb4

Please sign in to comment.