Skip to content

text mining

2 messages · rgui, Duncan Murdoch

#
Hi,

I have a problem when indexing the corpus. I used the following syntax:
an error message comes:
1: In readLines(y, encoding = x$Encoding) :
  ligne finale incompl?te trouv?e dans './n3.txt'
2: In readLines(y, encoding = x$Encoding) :
  ligne finale incompl?te trouv?e dans './n32.

another question:
 how can I read different document types (. pdf,. "...) html using the
package "tm"?

Thanks very well for help



--
View this message in context: http://r.789695.n4.nabble.com/text-mining-tp3560367p3560367.html
Sent from the R help mailing list archive at Nabble.com.
#
On 30/05/2011 6:17 AM, rgui wrote:
Capitalization is important in R, so when asking a question, please cut 
and paste what you actually did.  In this case, it doesn't matter.
Those are warnings, not errors.   readLines gives those warnings when 
the last line of the file stops abruptly, rather than having an end of 
line marker.  On Unix systems this usually signals a problem with the 
file.  Windows is more tolerant, so many editors don't bother to add the 
final marker.
I think you need to convert them to text first (by some tool outside of 
R), but I might be wrong.

Duncan Murdoch