BOW_test: Transform New Text into a Document-Feature Matrix
Description
This function takes a character vector of new documents and transforms it
into a DFM that has the exact same features as a pre-fitted training DFM,
ensuring consistency for prediction.
Usage
BOW_test(doc, fit)
Value
A quanteda dfm aligned to the training features.
Arguments
doc
A character vector of new documents to be processed.