get_word_stems: Convert a sentence, or list of sentences, into a bag of...

Description Usage Arguments Value See Also

View source: R/lyric_functions.R

Description

For a provided text, this function will: - convert the sentence to a vector of words - convert each word to lower case - replace <e2><80><99> with ' - remove all punctuation other that ' - replace -in' with -ing - remove snowball stop words (using tidy_text stopwords) - stem the words with SnowballC::wordStem - convert to a unique vector

Usage

1
get_word_stems(sentence)

Arguments

sentence

a space separated string of words, or a list of the same

Value

a vector of unique stems found in sentence

See Also

Other lyric_functions: find_bd_lyrics, find_line_matches, find_stems, get_stem_match, match_all_stems


kburnham/bobdylanr documentation built on May 6, 2019, 11:47 a.m.