sequence2list: convert sequences to a simple list
Description
Convert a sequence into a simple list, for input as a sequence in e.g.
tokens_compound
.
Usage
sequence2list(sequences)
Arguments
sequences
the input sequence, one of:
- character vector,
whose elements will be split on whitespace;
- list of characters,
consisting of a list of token patterns, separated by white space;
- tokens object;
- dictionary object;
- collocations object.
Value
an unnamed list of sequences, with each element of the list a
character vector with the split sequence.