Returns the first non-NULL tokens object from a priority fallback chain. Useful when multiple token processing stages exist and you need the most processed available version.
Usage
get_available_tokens(
final_tokens = NULL,
processed_tokens = NULL,
preprocessed_tokens = NULL,
united_tbl = NULL
)Details
Priority order (highest to lowest):
final_tokens - Fully processed tokens
processed_tokens - Partially processed tokens
preprocessed_tokens - Early stage preprocessed tokens
united_tbl - Raw text (will be tokenized if used)
See also
Other preprocessing:
get_available_dfm(),
import_files(),
prep_texts(),
process_pdf_unified(),
unite_cols()
