Well, abusing the system does not appear to be working, does it? The correct 
approach is to be more targeted in your audience. Is your problem with Ubuntu? 
Perhaps you need to post in the r-sig-debian mailing list. Is your issue 
specifically with the openNLS package? Try a simplified parallel processing 
example to see if that works (the error indicates some problem with the 
clusterApply function). If the package is the issue, contact the package 
maintainer. If the parallel processing example does not work, you will have 
narrowed the scope of concern considerably for discussion here. However, with 
RStudio and unfamiliar (to me) packages in the mix, and cross-posting that I 
interpret to mean some other conversation may answer it anyway, it is way 
easier to ignore your plea than to try to help you figure it out.

And you still have not followed the Posting Guide recommendation to post using 
plain text format, so your example code is messed up.

---------------------------------------------------------------------------
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<jdnew...@dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
                                      Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...1k
--------------------------------------------------------------------------- 
Sent from my phone. Please excuse my brevity.

Siddharth Arun <sid.aru...@gmail.com> wrote:
>I posted on both the forums because i needed urgent help on the issue.
>And
>I am still waiting for a relevant reply on how to solve the issue. If
>you
>have any suggestions please do share.
>
>
>On Wed, Sep 4, 2013 at 6:08 AM, David Winsemius
><dwinsem...@comcast.net>wrote:
>
>> This was also posted on StackOverflow. Crossposting to R-help is
>> discouraged. You are encouraged to read the Posting Guide and to
>learn how
>> to post from gmail using plain text.
>>
>> --
>> David.
>>
>>
>> On Sep 3, 2013, at 10:15 AM, Siddharth Arun wrote:
>>
>> > I have an Ubuntu Quantal 12.10 Server 64-bit instance. I am using
>openNLP
>> > for POS Tagging of sentences.
>> >
>> > I am using POS tagging using openNLP with ���Parallel Lapply
>setup���. It is
>> > running 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 == "word"]
>> >
>> >    POStags <- unlist(lapply(a3w$features, `[[`, "POS"))
>> >
>> >    POStagged <- paste(sprintf("%s/%s", s[a3w], POStags), collapse =
>" ")
>> >
>> >    list(POStagged = POStagged, POStags = POStags)
>> >
>> >  }
>> >
>> >
>> >
>> >  cl <- makeCluster(mc <- getOption("cl.cores", detectCores()/2))
>> >
>> >  clusterEvalQ(cl, {
>> >
>> >    library(openNLP)
>> >
>> >    library(NLP)
>> >
>> >    PTA <- Maxent_POS_Tag_Annotator()
>> >
>> >  })
>> >
>> >
>> >
>> > This is the setup I am using:
>> >
>> > �� Created an cloud instance with "Ubuntu Quantal 12.10 Server
>64-bit
>> > instance"
>> >
>> >
>> >
>> > �� Installed LAMP server in the instance
>> >
>> >
>> >
>> > �� After which I installed R. By default R version was 2.15.0
>> >
>> >
>> >
>> > �� Upgraded the R version to R 3.0.1
>> >
>> > --
>> > Regards,
>> >
>> > Siddharth Arun,
>> > Contact No. - +91 8880065278
>> >
>> >       [[alternative HTML version deleted]]
>> >
>> > ______________________________________________
>> > R-help@r-project.org mailing list
>> > https://stat.ethz.ch/mailman/listinfo/r-help
>> > PLEASE do read the posting guide
>> http://www.R-project.org/posting-guide.html
>> > and provide commented, minimal, self-contained, reproducible code.
>>
>> David Winsemius
>> Alameda, CA, USA
>>
>>

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to