Questions tagged [rweka]

RWeka - R package which makes Weka functions accessible

R is a free, open-source programming language and software environment for statistical computing, bioinformatics, and graphics. Weka is an open source machine learning library written in Java. RWeka is a package for R that provides an interface to most Weka functions so that they are accessible in R.

104 questions
0
votes
0 answers

R: Write arff with missing values

I'm constructing a data frame on R and want to export it to ARFF format. To do so, I am using the write.arff() function from RWeka library. However, when dealing with missing values (?), the output is like: @attribute atomic_comp_c …
Bruna Zamith
  • 55
  • 1
  • 7
0
votes
1 answer

how to define for in rweka- InfoGainAttributeEval

is there anybody can tell me how to define the formula in the rweka? A<- InfoGainAttributeEval(formula ~ . , data = TrainDataLSVT,na.action=NULL ) there are 310 features in the TrainDataLSVT.
Ellen
  • 1
  • 3
0
votes
1 answer

How to load the WEKA pre-preprocessing steps to R?

I have used the WEKA GUI Java here to do the preprocessing of the data. I would like to use the same preprocessing steps now in R. For example, I want to load the preprocessing of MultiFilter of WEKA GUI to R. I cannot find it in RWeka. How to load…
hhh
  • 50,788
  • 62
  • 179
  • 282
0
votes
1 answer

R Text Mining - Converting Term Document Matrix

I created a list of bigrams using: BigramTokenizer <- function(x) NGramTokenizer(x, Weka_control(min = 2, max = 2)) tdm_a.bigram = TermDocumentMatrix(docs_a, control = list(tokenize = BigramTokenizer)) I am trying to…
Sir Oliver
  • 57
  • 8
0
votes
1 answer

Text Analysis Program used to Work, Now it Doesn't

I wrote a file shown below (from the infamous Coursera course and beyond) and it has served me well. Not sure if something has changed, but it doesn't seem to work now and I have changed nothing. The first thing that doesn't seem to work is the for…
0
votes
1 answer

Error in using NGramTokenize (lapply issue)

I'm using the NGramTokenizer from the rWeka package. I believe i have installed everything correctly. I'm executing the following code: Bigram_Tokenizer <- function(x) NGramTokenizer(x, Weka_control(min = 2, max = 2)) tdm <-…
0
votes
1 answer

Finding n-grams in tm does not work following package updates

I had some text-mining code in R using the tm package that was working well. Then, I updated both R along with the tm and R-Weka packages. Now, the code does not work, and I am not sure why. My original guide for the code came from:…
AlanS
  • 13
  • 3
0
votes
2 answers

error installing package rweka however rjava is up to date

I am trying to install the package RWeka. I installed the java version 8, but i am keep getting this error. Can anybody help? > install.packages('RWeka') There is a binary version available but the source version is later: binary source…
Doris
  • 1
  • 1
0
votes
1 answer

How can i execute a jar file and capture the output for use in my R script?

The jar file I am using has an output of a bunch of text files. I would like to use these files for text mining. Rather than execute the jar file separately and then use the output for my R script, I want my R script to initiate the jar execution as…
alapalak
  • 147
  • 2
  • 2
  • 9
0
votes
1 answer

ldconfig rJava does not work

I am working on an open source R package which requires rJava and RWeka and somehow the rJava and RWeka breaks mysteriously on my local machine. Anyone knows why the rJava could break ? It seems that the system could not find the shared object, so…
sunxd
  • 743
  • 1
  • 9
  • 24
0
votes
1 answer

How to link 10-fcv weka predicted result back to original comment for text classification

Is there anyway I can route back my predicted result to original comment after text classification using 10-fold cross validation? From the result of 2000 comments of class non-sarc and sarc:…
Suhairi Suhaimin
  • 143
  • 3
  • 13
0
votes
0 answers

How to ues write.arff() with R?

I'm totally new on R and Weka and Data mining. But my tutor ask me to research with RWeka. I've been browsing online about the write. Arff() all the information, but still don't know how to use this function correctly: write.arff(x, file, eol =…
0
votes
0 answers

Running Rscript from cmd

My R Script is library(randomForest) library(RWeka) p= read.arff("C:\\Users\\lenovo\\Desktop\\Weka_data\\training_data_short_term.arff") t= read.arff("C:\\Users\\lenovo\\Desktop\\Weka_data\\test_short_term.arff") random <-…
Rupesh Kamble
  • 167
  • 3
  • 11
0
votes
0 answers

Can't install package RWeka

I am trying to install the RWeka package. install.packages("RWeka") When I do this I get the following errors. ** package ‘RWeka’ successfully unpacked and MD5 sums checked Need at least Java version 1.7/7.0. ERROR: configuration failed for…
PHH13
  • 53
  • 8
0
votes
0 answers

Loading RWeka on RStudio causes fatal error

require(RWeka) and library(RWeka) is creating a fatal error in R session.Restart the session. Any reasons or solutions for the same??
humble_me
  • 331
  • 3
  • 12