Code
tokenlist(list(letters), lemma = list(letters, letters))
Condition
Error in `vctrs::new_rcrd()`:
! All fields must be the same size.
Code
tokenlist(list(letters), pos = list(letters, letters))
Condition
Error in `vctrs::new_rcrd()`:
! All fields must be the same size.
Code
new_tokenlist(letters)
Condition
Error in `new_tokenlist()`:
! `tokens` must be a vector with type <list>.
Instead, it has type <character>.
Code
new_tokenlist(list(letters), lemma = letters)
Condition
Error in `new_tokenlist()`:
! `lemma` must be NULL or a list.
Code
new_tokenlist(list(letters), pos = letters)
Condition
Error in `new_tokenlist()`:
! `pos` must be NULL or a list.
Code
tokenlist(list(letters, letters))
Output
<textrecipes_tokenlist[2]>
[1] [26 tokens] [26 tokens]
# Unique Tokens: 26
Code
tokenlist(data)[3]
Condition
Error in `vec_slice()`:
! Can't subset elements past the end.
i Location 3 doesn't exist.
i There are only 2 elements.
Code
tokenlist_filter(LETTERS, letters)
Condition
Error in `tokenlist_filter()`:
! Input must be a tokenlist.
Code
tokenlist_apply(tkn_list, letter_filter, let = "D")
Condition
Error in `tokenlist_apply()`:
! unused argument (let = "D")
Code
tokenlist_apply(letters, toupper)
Condition
Error in `tokenlist_apply()`:
! Input must be a tokenlist.
Code
tokenlist_lemma(letters)
Condition
Error in `tokenlist_lemma()`:
! Input must be a tokenlist.
Code
tokenlist_lemma(tokenlist(list(letters)))
Condition
Error in `tokenlist_lemma()`:
! `lemma` attribute not avaliable.
Code
tokenlist_pos_filter(letters, "NOUN")
Condition
Error in `tokenlist_pos_filter()`:
! Input must be a tokenlist.
Code
tokenlist_pos_filter(tokenlist(data), "NOUN")
Condition
Error in `tokenlist_pos_filter()`:
! pos attribute not avaliable.
Code
tokenlist_ngram(letters)
Condition
Error in `tokenlist_ngram()`:
! Input must be a tokenlist.
Code
tokenlist_ngram(tokenlist(data), 0, 3, " ")
Condition
Error:
! n must be a positive integer.
Code
tokenlist_ngram(tokenlist(data), 3, 0, " ")
Condition
Error:
! n_min must be a positive integer.
Code
tokenlist_ngram(tokenlist(data), 1, 2, " ")
Condition
Error:
! n_min must be larger then n.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.