에러: inherits(doc, "TextDocument") is not TRUE

CODEDRAGON Development/AI

반응형


 

 

에러메시지

에러: inherits(doc, "TextDocument") is not TRUE

> dtm<-DocumentTermMatrix(reuters)

에러: inherits(doc, "TextDocument") is not TRUE

>

 

 

해결방법

> reuters <- tm_map(reuters, PlainTextDocument)

> dtm <- DocumentTermMatrix(reuters)

>