deeplearning4j / deeplearning4j/deeplearning4j-examples

Convert string to vector in DataVec

Open
#877 2 comments 1 reaction 0 assignees View on GitHub
enhancement help wanted
Dominant language
Java
Stars
2.5k
Forks
1.8k
PR merge metrics
No merged PRs in 30d

Description

Please provide an example showing how to transform sentence (string) training data to vectors using a pre-populated `word2vec` object. Edourado mentioned we should be able to use an embedded layer to do this. Something about mapping `word2vec` to rows of vectors inside an embedded layer, then having the input layer contain indexes to those rows depending on what words the input data references.

Keep in mind the input contains sentences (multiple words). Thank you.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.