trinker / termco

Regular Expression Counts of Terms and Substrings
Other
25 stars 5 forks source link

token_count broken #43

Closed trinker closed 7 years ago

trinker commented 7 years ago

broken:

token_list <- list(
     person = c('sam', 'i'),
     place = c('here', 'house'),
     thing = c('boat', 'fox', 'rain', 'mouse', 'box', 'eggs', 'ham'),
     no_like = c('not like')
 )

 token_count(sam_i_am, grouping.var = TRUE, token.list = token_list)
 Error in eval(a, enclos = parent.frame()) : 
  the ... list does not contain 2 elements 
trinker commented 7 years ago

Related to this: https://github.com/kbenoit/quanteda/issues/721

The fix for now:

image