creates a document vector for each document representing
terms space, exactly as the normal document vector node. The
difference is that this node takes two data tables as input:
1. Table containing the bag-of-words terms
2. Table containing the reference document vector
The terms from the first input will be converted into document vectors using the vector from the second input as the reference. Features that appear in first table, but not in the reference table will be filtered out, and features that appear in the reference table, but not in the first table will be added to the output vector and their values will be set to 0.
The values of the feature vectors can be specified as boolean values or as values of a specified column i.e. an tf*idf column. The dimension of the vectors will be the number of distinct terms in the BoW.
You want to see the source code for this node? Click the following button and we’ll use our super-powers to find it for you.
To use this node in KNIME, install the extension KNIME Textprocessing from the below update site following our NodePit Product and Node Installation Guide:
A zipped version of the software site can be downloaded here.
Do you have feedback, questions, comments about NodePit, want to support this platform, or want your own nodes or workflows listed here as well? Do you think, the search results could be improved or something is missing? Then please get in touch! Alternatively, you can send us an email to firstname.lastname@example.org, follow @NodePit on Twitter, or chat on Gitter!
Please note that this is only about NodePit. We do not provide general support for KNIME — please use the KNIME forums instead.