Sto cercando di creare una matrice di documenti con NLTK e panda. ho scritto la seguente funzione: def fnDTM_Corpus(xCorpus):
import pandas as pd
'''to create a Term Document Matrix from a N
Ho provato a utilizzare tm_map. Ha dato il seguente errore. Come posso aggirare questo? require(tm)
byword<-tm_map(byword, tolower)
Error in UseMethod("tm_map", x) :
no applicable method for '