Skip to content
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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

JoannaWangBK
Copy link

No description provided.

Copy link
Owner

@madrugado madrugado left a 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']:
Copy link
Owner

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!')
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants