Skip to content

W266 project#7

Open
JoannaWangBK wants to merge 3 commits into
madrugado:masterfrom
JoannaWangBK:W266Project
Open

W266 project#7
JoannaWangBK wants to merge 3 commits into
madrugado:masterfrom
JoannaWangBK:W266Project

Conversation

@JoannaWangBK

Copy link
Copy Markdown

No description provided.

@madrugado madrugado left a comment

Copy link
Copy Markdown
Owner

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.

Comment thread code/preprocess.py
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
Copy Markdown
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?

Comment thread code/word2vec.py
model = gensim.models.Word2Vec(sentences, size=200, window=10, min_count=5, workers=4)
model.save(model_file)

print('Done!')

Copy link
Copy Markdown
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