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

itoken returned data structure is not documented #339

Open
otoomet opened this issue Mar 11, 2023 · 0 comments
Open

itoken returned data structure is not documented #339

otoomet opened this issue Mar 11, 2023 · 0 comments

Comments

@otoomet
Copy link

otoomet commented Mar 11, 2023

The documentation for itoken is silent about the data structure that is returned. It appears to be an R6 object with a few public functions and variables, but I cannot figure out what they are.

For context, I am trying to create one-hot encoded (long-vector) word embeddings for teaching/demonstration purposes. More specifically I want

  1. load texts, create vocabulary
  2. transform words to the corresponding one-hot encoded vectors
  3. combine nearby words into corresponding word embeddings (using one-hot vectors).

In a sense, this is equivalent to working with a DTM where each document is an individual word. As such DTM easily get's large, I am trying to find a way to iterate over individual words.

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

No branches or pull requests

1 participant