R/cleaned_source_to_utterance_vector.R
cleaned_source_to_utterance_vector.Rd
Utterance vectors are split by the utterance marker. Note that if x
has
more than one element, the separate elements will remain separate.
cleaned_source_to_utterance_vector(
x,
utteranceMarker = rock::opts$get("utteranceMarker"),
fixed = FALSE,
perl = TRUE
)
The character vector.
The utterance marker (by default, a newline character conform the ROCK standard).
Whether the utteranceMarker
is a regular expression.
If the utteranceMarker
is a regular expression, whether it is
a perl regular expression.
A character vector with separate utterances, split
by utteranceMarker
.
cleaned_source_to_utterance_vector("first\nsecond\nthird");
#> [1] "first" "second" "third"