Displaying 20 results from an estimated 2000 matches similar to: "TM Package - Corpus function - Memory Allocation Problems"
2010 Sep 30
1
Can this code be written more efficiently?
Dear users,
I'm working on binary classification problem using Support Vector
Machines (SVM). My objective is to train a series of SVM models on a
grid of hyperparameters and then select those that maximize the AUC
based on an independent validation sample.
My attempted code is shown below. It runs well on "small" data sets but
when I use it on a slightly larger sample (e.g., my
2010 Oct 12
0
New R User Group in Toronto
Dear R users,
I'm pleased to announce that the Greater Toronto Area (GTA) user's group
is now active on meetup.com, and taking suggestions for the first
meeting. If you are on the region, you can sign-up now at the link below
http://www.meetup.com/Greater-Toronto-Area-GTA-R-Users-Group
This group is aimed to bring together practitioners (from industry and
academia alike) in order to
2014 Jul 29
2
wordcloud y tabla de palabras [Avanzando]
Buenas tardes grupo. Saludos cordiales Carlos J., muchas gracias por
tu orientación. Efectivamente, me había dado cuenta que la razón por
la que no se aplicaba colnames era porque no tenía columnas. La
cuestión es que no logro visualizar completamente/claramente en qué
parte del proceso de creación del corpus se puede hacer.
Sin embargo, siguiendo el ejemplo de
2014 Jun 17
2
No es un problema de tm tienes doc.corpus vacío
No es un problema de tm ni de SnowfallC ni de mcapply (por el path
utilizas linux, en windows mcapply según el manual no va bien)
No defines bien los objetos que pasas. Pasas doc.corpus en lugar de
corpus ( o asignas a corpus en lugar de a doc.corpus) .
Depura los programas cuando salga un error de objeto, como te pone en el
Error que pasas .
Temporalmente lo tienes arreglado en
2014 Jun 18
3
No es un problema de tm tienes doc.corpus vacío
Muchas gracias isidro,
a la noche reinstalo R y os digo si me ha funcionado. Perdona mi ignorancia
de novato pero no he entendido muy bien eso de avisar al desarrollador.
Entiendo que es a los de los paquetes, no?
un saludo!
ruben
El 18 de junio de 2014, 13:10, Isidro Hidalgo <ihidalgo@jccm.es> escribió:
> Ya he visto que tampoco así funciona.
> Sí te puedo decir que me ha dejado
2014 Jun 18
2
No es un problema de tm tienes doc.corpus vacío
Creo que lo que quieres hacer necesita esta línea de código justo después de
cargar el paquete tm:
inmortal = unlist(strsplit(inmortal, " ", fixed = T))
De esta forma, trabajas con palabras, y NO con las frases enteras...
Un saludo
Isidro Hidalgo Arellano
Observatorio Regional de Empleo
Consejería de Empleo y Economía
http://www.jccm.es
> -----Mensaje original-----
> De:
2012 Jun 20
0
formula method with "special" characters
Dear List,
I'm trying to create a formula method, allowing for a "special"
character in the formula (i.e., similar to for example the gam package
with the character "s" in y ~ s(x)). I've checked and it seems this is
done through attr(,"specials"). However, the section of code below (as
an example extracted from the gam package) gives me an error as shown at
2014 Apr 08
1
Question regarding ssh and lxc
I'm trying to narrow down the source of a bug where a docker container sshd closes the connection after a successful authentication (https://bugzilla.redhat.com/show_bug.cgi?id=1085081) - filed with libvirt as there's no docker-io component for RHEL 6.5 in bugzilla.
One of the steps I'm taking is to reproduce a similar setup using LXC but while it seemed to have worked I'm not
2013 Jan 15
0
Function failure in tm
HI all:
I have a customized source reader for the package tm (that Milan Bouchet-Vallat has been instrumental in producing).
I can get it to produce a corpus of class:
"VCorpus" "Corpus" "list"
class(mycorp[1]) returns
"VCorpus" "Corpus" "list"
and class(mycorp[[1]] returns
"PlainTextDocument"
2010 Jan 25
2
tm installation (PR#14193)
Full_Name: Cesar Telmo Costa
Version: R version 2.9.2 (2009-08-24)
OS: Ubuntu kermic
Submission from: (NULL) (85.241.174.237)
AFTER install.packages("tm"):
downloaded 317 Kb
* Installing *source* package ?tm? ...
** libs
gcc -std=gnu99 -I/usr/share/R/include -fpic -g -O2 -c lazyTmMap.c -o
lazyTmMap.o
gcc -std=gnu99 -shared -o tm.so lazyTmMap.o -L/usr/lib/R/lib -lR
** R
** data
2010 Mar 05
2
CRAN nearly down?
Is CRAN having trouble or is it just me? (The web interface is very
slow and install.packages() is timing out and giving me "service not
available").
Paul
====================================================================================
La version française suit le texte anglais.
------------------------------------------------------------------------------------
This email
2011 Feb 03
1
S3 method for S4 object
I am trying to extend an S3 method to work with an S4 object as well as the S3 objects it works with, but UseMethod does not seem to recognize the S4 class and dispatches to the default method. Is this to be expected or should I be looking for an error in my code?
If it is not an error in my code, is there an easy way to do this, or do I have to convert the generic to S4 and then make those
2011 Jul 29
2
R DDD fortran
Is there an easy way to compile a packages's fortran so that it has the information for ddd or gdb to follow the lines of the code? I seem to remember seeing something about this, but I cannot find it in Writing R Extensions. (I see about Valgrind, debugging a segfault, and some other tricks, but what I really want is to follow the fortran logic.)
Thanks for any pointers,
Paul
2009 Sep 15
2
S3 objects in S4 slots
Hello,
I am the maintainer of the stringkernels package and have come across
a problem with using S3 objects in my S4 classes.
Specifically, I have an S4 class with a slot that takes a text corpus
as a list of character vectors. tm (version 0.5) saves corpora as
lists with a class attribute of c("VCorpus", "Corpus", "list"). I
don't actually need the
2009 Nov 03
1
Can't pass file name as parameter to Corpus function
I'm working on a small project to extract high-frequency terms from a
document and then display those terms in web page. To this end, I've to pass
the file name as parameter to the Corpus function to build a corpus of only
one document. I can build the corpus using the code below interactively in
R. But calling the function with a file name as the parameter I got the
error message saying
2010 Apr 19
1
utf8.def
I am trying to check my packages with R-rc and latex is failing to find
utf8.def. I presume my latex installation is defective or too old, or
is this file distributed with R and I just don't have a path set
correctly?
Paul
______________
* checking PDF version of manual ... WARNING
LaTeX errors when creating PDF version.
This typically indicates Rd problems.
LaTeX errors found:
!
2009 Oct 15
1
R RSS feed
I was trying to subscribe to an RSS feed from
<http://developer.r-project.org/RSSfeeds.html> but IE chokes on DTDs and
Firefox also has trouble with this feed. (I'm not sure if it has trouble
with DTDs in general.)
I went to one of our web developers to see what I should use to read the
feed, and he pointed out that the mix of RSS 2.00 and rss-0.91 looks
like a mistake:
<!--
2015 Apr 10
5
Loop sobre muchos data frames
Jorge
Gracias por el consejo. Aparentemente no lo estoy aplicando bien, pues el
objeto que obtengo no contiene lo que quiero.
Me explico, al ejecutar
txt <- vector('list', length = length(names)) #names el el vector donde ya
tenía almacenada la lista de txt's
for(i in seq_along(txt)){
txt[[i]] <- Corpus(VectorSource(names[i]))
}
obtengo el objeto txt:
> class(txt)
[1]
2015 Apr 12
2
Loop sobre muchos data frames
Jorge, estimados colaboradores de R-help
Estuve tratando de utilizar un script para uno de los pasos en mi análisis,
que es transformar cada uno de los corpus en mi espacio de trabajo en un
objeto TermDocumentMatrix
Tengo un vector llamado bNames que lista todos los corpus que quiero pasar
a TDM, y construí los siguientes comandos:
tdm.n1 <- vector('list', length = length(bNames))
2009 Oct 13
1
beta build problem
I am having the following problem building
R-beta_2009-10-12_r50045.tar.gz
on
Ubuntu 9.04 - the Jaunty Jackalope
Paul
________
...
make[2]: Entering directory
`/home/paul/toolchain/R/R-beta/src/library/Recommended'
begin installing recommended package boot
gzip: invalid option -- 'x'
Try `gzip --help' for more information.
tar: This does not look like a tar archive