-
Notifications
You must be signed in to change notification settings - Fork 627
How to use embedding doc #442
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
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.
LGTM
|
||
This will save the embeddings and the word dictionary to the `./embedding_log` folder. | ||
|
||
We can now activate the VisualDL by running `visualdl --logdir=./embedding_log`. |
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.
use visualDL as case sensitive?
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.
Sounds good. Changed
@@ -0,0 +1,127 @@ | |||
# 如何用VisualDL可视化 Embedding | |||
|
|||
在这里,我们将向您展示如何在 PyTourch 中使用 VisualDL 可视化 Embedding。 |
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.
PyTorch
# 如何用VisualDL可视化 Embedding | ||
|
||
在这里,我们将向您展示如何在 PyTourch 中使用 VisualDL 可视化 Embedding。 | ||
Embedding 常用于自然语言处理中,他能将语义意义使用高维向量来表示。 |
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.
它, also '语义意义' means what? semantics? If it is semantics, then just 语义 would work.
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.
got it
# How to visualize embedding with VisualDL | ||
|
||
Here we would like to show you how to visualize embeddings with | ||
VisualDL in PyTourch. |
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.
PyTorch
|
||
That's all the code you need to generate your first embedding. | ||
|
||
Now, let just add a little bit of code to store the embedding to VisualDL log |
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.
let us
embedding.add_embeddings_with_word_dict(embeddings_list, word_to_ix) | ||
``` | ||
|
||
Include the above code to your embedding training program. |
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.
Insert the above code snippet into ...
Add the 'How to use embedding' documentation.