Skip to content

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

Merged
merged 7 commits into from
Apr 30, 2018
Merged

Conversation

jetfuel
Copy link
Collaborator

@jetfuel jetfuel commented Apr 30, 2018

Add the 'How to use embedding' documentation.

@jetfuel jetfuel self-assigned this Apr 30, 2018
nickyfantasy
nickyfantasy previously approved these changes Apr 30, 2018
Copy link
Contributor

@nickyfantasy nickyfantasy left a 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`.
Copy link
Contributor

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?

Copy link
Collaborator Author

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。
Copy link
Collaborator

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 常用于自然语言处理中,他能将语义意义使用高维向量来表示。
Copy link
Collaborator

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.

Copy link
Collaborator Author

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.
Copy link
Collaborator

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

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.
Copy link
Collaborator

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 ...

@jetfuel jetfuel merged commit d9a7146 into PaddlePaddle:develop Apr 30, 2018
@jetfuel jetfuel deleted the howToUseEmbeddingDoc branch April 30, 2018 19:13
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.

3 participants