
Mapping Collocation Frequency to Transcript Document
Source:R/transcript_frequency.R
transcript_frequency.RdThis function connects the collocation frequency calculated in
collocate_comments_fuzzy() to the base transcript.
Arguments
- transcript
transcript document
- collocate_object
collocation object (returned from
collocate_comments_fuzzy()orcollocate_comments())
Examples
# Tokenize the derivative document
toks_comment <- tokenize_derivative(comment_example, text_column="Notes")
# Tokenize source document
toks_source <- tokenize_source(transcript_example)
# Compute collocation frequencies
collocation_object <- collocate_comments(toks_source, toks_comment)
# Merge frequencies with source document to provide averages by word and correct formatting
merged_frequency <- transcript_frequency(transcript_example, collocation_object)