Displaying 3 results from an estimated 3 matches for "tagpos".
Did you mean:
nagios
2013 Aug 24
3
Parts of Speach Tagging
I was using tagPOS function from openNLP package for parts-of-speach. Now
the package is updated and the function is not present. Any suggestions how
to do it now ?
Thanks for your help.
--
Regards,
Siddharth Arun,
Contact No. - +91 8880065278
[[alternative HTML version deleted]]
2011 Feb 28
1
Creating new variables. How do you get them into a data frame?
Hi
I'm an R newbie. I can't seem to add new variables to data frames. Here are
the stages
(1) I import the data using read.csv.
(2) I fix it using fix(data)
(3) I create a new variable using
spos<-tagPOS(stim,language="en",model=NULL,tagdict=NULL).
(tagPOS is a function in the OpenNLP toolkit, which tags a string for part
of speech. "stim" is a variable in the current data frame)
What happens is that the new variable, "spos" is saved as an object, but not
added to th...
2013 Sep 04
0
Error in Parts of Speach Tagging using openNLP in Cloud environment
...fine in RStudio environment. But in Ubuntu environment it is
showing 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 == &quo...