I am creating a Copus from a dataframe. I pass it as a VectorSource
as there is only one column I want to be used as the text source. This works find however I need
I know it's probably late for @user1098798, but there is a way how you can specify ids directly when creating the corpus. You need to load the data as DataframeSource()
and add mapping to the columns:
corpus = VCorpus(DataframeSource(df), readerControl = list(reader = readTabular(mapping = list(content = "textColumn", id = "ids"))))