Get started with conversions to TF #68
Unanswered
dirkroorda
asked this question in
corpus2tf
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If you have a corpus in structured format, e.g. XML, CSV, or in some kind of database, then Text-Fabric has a module that helps you to convert it into nodes and edges.
See walker.
You walk through all the material of the corpus and you fire events towards a factory that then composes a complete TF dataset out of it.
Toy example:
banks
You can see how that is used in various existing programs that convert corpora to TF. For example
Beta Was this translation helpful? Give feedback.
All reactions