Weihong Zhang - 2013-08-22

0 down vote favorite

I am using a few R packages (webmining, sentiment, openNLP) to extract some sentences about a stock JPM, but running in the following error:

Error in eval(expr, envir, enclos) : could not find function "sentDetect"

Here is the codes I used and I made sure that all packages are installed. I checked the "corpus" variable and it is "a corpus with 20 text documents". I also used "library(help=openNLP)" to list all the functions in the package "openNLP" but did not find "sentDetect" in the list.

library(XML)
library(tm)
library(tm.plugin.webmining)
library(tm.plugin.sentiment)
library(NLP)
library(openNLP)
stock <-"JPM"
corpus <- WebCorpus(GoogleFinanceSource(stock))
sentences <- sentDetect(corpus)

Here is the running environment. Is it possibly related to the R 3.0.1 version (too new for openNLP) or 64-bit Windows system?

R version 3.0.1 (2013-05-16) -- "Good Sport" Copyright (C) 2013 
The R Foundation for Statistical Computing 
Platform: x86_64-w64-mingw32/x64 (64-bit)

Thank you very much.

Weihong

 

Last edit: Weihong Zhang 2013-08-22