mannau / tm.plugin.sentiment

Retrieve structured, textual data from various web sources.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error from tm.plugins.sentiment Score function

ianlokh opened this issue · comments

Hi,

Thanks for the package and the work on sentiment mining! I managed to compile the source on R 3.1.1 on Mac OSX 10.9.5 through R Studio v 0.98.1028

However when I run the following script, I get the error:

Error in score(XYZNews) : could not find function "DMetaData"

Get stock time series for selected stock

getSymbols("AAPL", src="yahoo")
[1] "AAPL"
chartSeries(AAPL, subset='last 3 months')
addBBands() ### This plots last 3 months of stock trending chart

Get news for the specific stock

XYZNews = WebCorpus(GoogleFinanceSource("AAPL"))
text.corpus = score(XYZNews)
Error in score(XYZNews) : could not find function "DMetaData"
meta(text.corpus)
Error in meta(text.corpus) : object 'text.corpus' not found

Would like your kind help in helping me to troubleshoot this issue?

Thanks so much!
Ian

Look at:
http://cran.r-project.org/web/packages/tm/news.html

Changes in tm version 0.6
Following functions have been removed:

Author(), DateTimeStamp(), CMetaData(), content_meta(), DMetaData(), Description(), Heading(), ID(), Language(), LocalMetaData(), Origin(), prescindMeta(), sFilter() (use meta() instead).

Best regards
robert

Noted with thanks!

sorry for the late fix, should work now.
Thanks for the bug report!
mario

Mario,

Thx. it is vorking perfectly now.

Best regards

On Mar 8, 2015, at 8:32 PM, Mario Annau notifications@github.com wrote:

Closed #1 #1.


Reply to this email directly or view it on GitHub #1 (comment).