Displaying 12 results from an estimated 12 matches for "termdocmatrix".
2010 Apr 23
2
Library (tm) Error: could not find function "TermDocMatrix".
...readerControl = list(reader =
> readReut21578XMLasPlain)))> >
> summary(r)
A corpus with 20 text documents
The metadata consists of 2 tag-value pairs and a data frame
Available tags are:
create_date creator
Available variables in the data frame are:
MetaID
> rec.matrix <- TermDocMatrix(r)
Error: no se pudo encontrar la funci?n "TermDocMatrix"
Error: could not find function "TermDocMatrix".
Thanks
--
View this message in context: http://r.789695.n4.nabble.com/Library-tm-Error-could-not-find-function-TermDocMatrix-tp2062464p2062464.html
Sent from the R...
2009 Jan 09
1
[R} how to build TermDocMatrix in tm text mining package of R
Howdy Gurus
I 'd like to ask a question about how to build TermDocMatrix in tm text
mining package.
It is not clear about importing a plain text file, and them converting that
text file into TermDocMatrix file, etc to me.
How can I build a TermDocMatrix of " a plain text document file for text
association?
Or are there any good manuals?
Thank you in advance,
--...
2007 Dec 12
1
tm package - how to transform a TermDocMatrix to a data.frame
An embedded and charset-unspecified text was scrubbed...
Name: n?o dispon?vel
Url: https://stat.ethz.ch/pipermail/r-help/attachments/20071212/2483b4bc/attachment.pl
2011 Jan 24
1
Extracting information from text data
...Using package tm
I am using package tm to do the job. I have provided the code below:
> my.corpus <- Corpus(DirSource(my.path), readerControl = list (reader=readPlain))
In readLines(y, encoding = x$Encoding) :
incomplete final line found on 'M:\textmine/slr.txt'
> x <- TermDocMatrix(my.corpus)
Error: could not find function "TermDocMatrix"
B. Using package(s) other than tm
Once again, thank you very much for the time you have given.
Regards,
Deb
The code:
library(tm)
my.path<- 'M:\\textmine'
my.corpus <- Corpus(DirSource(my.path), readerCo...
2008 Oct 18
2
sorting matrix output alphabetically
Hello,
I have been using the TM package to create a TermDocMatrix, which I
have saved as a matrix so that I can view word frequencies. Below is
a section of the code that I have used and an excerpt of the output:
What I wanted to be able to do is to view the output alphabetically -
rather than the results being sorted by frequency as below, that an
alphabet...
2009 Jan 10
1
Help needed for Loading "tm" package
...a virtual machine (-1)
Error : .onLoad failed in 'loadNamespace' for 'RWeka'
Error: package 'RWeka' could not be loaded
> my.corpurs <-Corpus(DirSource(my.path), readerControl =
list(reader=readPlain))
Error: could not find function "Corpus"
> my.tdm <- TermDocMatrix(my.corpus)
Error: could not find function "TermDocMatrix"
> my.tdm[1,]
Error: object "my.tdm" not found
--
Kum-Hoe Hwang, Ph.D.
Phone : 82-31-250-3516
Email : phdhwang@gmail.com
[[alternative HTML version deleted]]
2009 Apr 17
0
question about the Text Mining package tm
...ath), readerControl = list(reader = readPlain,
language = "la")))
Response from R:
A text document collection with 3 text documents
Warning message:
In readLines(filename, encoding = encoding) :
incomplete final line found on 'C:\dataForR\textsTweet1\/short.txt'
Then I ran the TermDocMatrix function. It is supposed to take a file and
more or less count the occurrences of each word in the file. Or as the
documentation says "Constructs a term-document matrix"
> tdm<-TermDocMatrix(ovid)
> Data(tdm)[1:2, 105:107]
2 x 3 sparse Matrix of class "dgCMatrix"
rev...
2009 Mar 30
1
Help with tm assocation analysis and Rgraphviz installation.
...d no association value is less than 1, which
obviously is wrong.
Could any export tell me where did I do wrong?
My R-code is:
R>my.path<-'C:\\textfile'
R>library(tm)
R>my.corpus <- Corpus(DirSource(my.path), readerControl = list
(reader=readPlain))
R>tdmO <- TermDocMatrix(my.corpus)
R>tdmO
An object of class “TermDocMatrix”
Slot "Data":
2 x 1426 sparse Matrix of class "dgCMatrix"
[[ suppressing 1426 column names ‘000’, ‘0092’, ‘0093’ ... ]]
1 3 1 12 1 1 1 8 1 1 2 1 9 . 2 2 1 518 1 1 1 2 1 1 2 6 1 1 3 3 2 1 1 4 1 4 3
3 1 11 5 1 7...
2007 Jul 14
0
Extending Matrix class
...;
>>>>> on Fri, 13 Jul 2007 16:14:07 +0200 writes:
IF> Hello, We tried to derive a class from Matrix but had
IF> some problems. Maybe you can help us:
library("Matrix")
m <- Matrix(c(1:3,rep(0,12),16:20), nrow = 4, ncol = 5)
setClass("TermDocMatrix", representation(Weighting = "character"),
contains = ("Matrix"))
IF> Now we want to do something like:
IF> new("TermDocMatrix", .Data = m, weighting = "foobar")
IF> which obviously does not work due to the missing .Da...
2009 Jan 15
1
How to Solve the Error( error:cannot allocate vector of size 1.1 Gb)
...2000)
NULL
> corpus.ko <- Corpus(DirSource("test_konews/"),
+ readerControl = list(reader = readPlain,
+ language = "UTF-8", load = FALSE))
> corpus.ko.nowhite <- tmMap(corpus.ko, stripWhitespace)
> corpus <- tmMap(corpus.ko.nowhite, tmTolower)
> tdm <- TermDocMatrix(corpus)
> findAssocs(tdm, "city", 0.97)
error:cannot allocate vector of size 1.1 Gb
-------------------------------------------------------------
>
################################
Thanks for your precious time,
--
Kum-Hoe Hwang, Ph.D.
Phone : 82-31-250-3516
Email : phdhwang at g...
2009 Jan 15
2
Interface to open source Reporting tools
...'loadNamespace' for 'RWeka'
> > Error: package 'RWeka' could not be loaded
> >> my.corpurs <-Corpus(DirSource(my.path), readerControl =
> > list(reader=readPlain))
> > Error: could not find function "Corpus"
> >> my.tdm <- TermDocMatrix(my.corpus)
> > Error: could not find function "TermDocMatrix"
> >> my.tdm[1,]
> > Error: object "my.tdm" not found
> >
> >
> > --
> > Kum-Hoe Hwang, Ph.D.
> >
> > Phone : 82-31-250-3516
> > Email : phdhwang@gmail.com...
2009 Apr 01
0
回复: R-help Digest, Vol 73, Issue 32
...d no association value is less than 1, which
obviously is wrong.
Could any export tell me where did I do wrong?
My R-code is:
R>my.path<-'C:\\textfile'
R>library(tm)
R>my.corpus <- Corpus(DirSource(my.path), readerControl = list
(reader=readPlain))
R>tdmO <- TermDocMatrix(my.corpus)
R>tdmO
An object of class “TermDocMatrix”
Slot "Data":
2 x 1426 sparse Matrix of class "dgCMatrix"
[[ suppressing 1426 column names ‘000’, ‘0092’, ‘0093’ ... ]]
1 3 1 12 1 1 1 8 1 1 2 1 9 . 2 2 1 518 1 1 1 2 1 1 2 6 1 1 3 3 2 1 1 4 1 4 3
3 1 11 5 1 7...