search for: word_token_annotator

Displaying 1 result from an estimated 1 matches for "word_token_annotator".

2013 Sep 04
0
Error in Parts of Speach Tagging using openNLP in Cloud environment
...wing the following error. *Error in do.call(c, clusterApply(cl, x = splitList(X, length(cl)), fun = lapply, :* * second argument must be a list* Any suggestion for the problem I’m facing? This is the code that I am using: tagPOS <- function(x, ...) { s <- as.String(x) word_token_annotator <- Maxent_Word_Token_Annotator() a2 <- Annotation(1L, "sentence", 1L, nchar(s)) a2 <- annotate(s, word_token_annotator, a2) a3 <- annotate(s, PTA, a2) a3w <- a3[a3$type == "word"] POStags <- unlist(lapply(a3w$features, `[[`, "POS&q...