thanks a alot !!! I got it :)

On Thu, Jun 14, 2012 at 8:07 PM, Rui Barradas [via R] <
ml-node+s789695n4633385h9@n4.nabble.com> wrote:

> Hello,
>
> Try
>
> sink("sentiment.txt")
> classify_polarity(...etc...)
> sink()
>
>
> If this doesn't do it see
>
> ?capture.output
>
> Hope this helps,
>
> Rui Barradas
>
> Em 14-06-2012 09:13, raishilpa escreveu:
>
> > hello,
> > I am using following command
> >
> > classify_polarity(documents,algorithm="bayes",verbose=TRUE)
> >   output is:
> > [1] "DOCUMENT 1"
> > [1] "WORD: excited CAT: positive POL: strongsubj SCORE:
> 8.44419229853175"
> > [1] "WORD: happy CAT: positive POL: strongsubj SCORE: 8.44419229853175"
> > [1] "WORD: optimistic CAT: positive POL: weaksubj SCORE:
> 7.7510451179718"
> > [1] "POS: 25.670707456461 NEG: 0.445453222112551 RATIO:
> 57.6282899800754"
> >
> > [1] "DOCUMENT 2"
> > [1] "WORD: annoyed CAT: negative POL: strongsubj SCORE: 9.0300168178449"
> > [1] "WORD: irritated CAT: negative POL: strongsubj SCORE:
> 9.0300168178449"
> > [1] "WORD: scared CAT: negative POL: strongsubj SCORE: 9.0300168178449"
> > [1] "POS: 1.03127774142571 NEG: 27.5355036756473 RATIO:
> 0.0374526557993482"
> >
> >       POS                NEG                 POS/NEG
>  BEST_FIT
> > [1,] "25.670707456461"  "0.445453222112551" "57.6282899800754"
> "positive"
> > [2,] "1.03127774142571" "27.5355036756473"  "0.0374526557993482"
> "negative"
> >
> > I want to export this output...what I am using is that
> > write.csv(documents,file="sentiment.csv")
> >
> > but I am getting only following part
> >       POS                NEG                 POS/NEG
>  BEST_FIT
> > [1,] "25.670707456461"  "0.445453222112551" "57.6282899800754"
> "positive"
> > [2,] "1.03127774142571" "27.5355036756473"  "0.0374526557993482"
> "negative"
> >
> > I want to export whole output....Can anybody help me in this regard
> >
> > thanks in advance
> >
> > Shilpa Rai
> >
> > --
> > View this message in context:
> http://r.789695.n4.nabble.com/how-to-export-output-tp4633341.html
> > Sent from the R help mailing list archive at Nabble.com.
> >
> > ______________________________________________
> > [hidden email] <http://user/SendEmail.jtp?type=node&node=4633385&i=0>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.
> >
>
> ______________________________________________
> [hidden email] <http://user/SendEmail.jtp?type=node&node=4633385&i=1>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.
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
> http://r.789695.n4.nabble.com/how-to-export-output-tp4633341p4633385.html
>  To unsubscribe from how to export output, click here<http://r.789695.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4633341&code=cmFpc2hpbHBhLmJodUBnbWFpbC5jb218NDYzMzM0MXwxOTAyOTIzNTU5>
> .
> NAML<http://r.789695.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>



-- 
Shilpa Rai
MSc.(2011-2013)
Applied Statistics and Informatics
Indian Institute of Technology,Bombay


--
View this message in context: http://r.789695.n4.nabble.com/how-to-export-output-tp4633341p4633418.html
Sent from the R help mailing list archive at Nabble.com.
	[[alternative HTML version deleted]]

