-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
W266 project #7
base: master
Are you sure you want to change the base?
W266 project #7
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please update your code according to my comments.
@@ -37,7 +38,7 @@ def preprocess_test(domain): | |||
|
|||
for text, label in zip(f1, f2): | |||
label = label.strip() | |||
if domain == 'restaurant' and label not in ['Food', 'Staff', 'Ambience']: | |||
if domain == 'speaker' and label not in ['sound', 'durability', 'design', 'price']: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's ok to use this code for other datasets, but maybe you could rewrite it to be more universal?
@@ -17,9 +17,10 @@ def main(domain): | |||
sentences = MySentences(source) | |||
model = gensim.models.Word2Vec(sentences, size=200, window=10, min_count=5, workers=4) | |||
model.save(model_file) | |||
|
|||
print('Done!') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure that it is needed.
No description provided.