Subset a corpus by meta data?

那年仲夏 提交于 2020-01-05 10:09:33

问题


I feel like this should be easier, but I cannot figure this out. How do I filter out documents from a corpus based on metadata. To be more specific, I have a corpus of 576 documents, each of which has the tag 'Section'. Section has a number of different values such as, "News", "Editorial" and "Comment".
How do i use tm_filter to filter out documents, say, that have "Editorial" and or "Comment" in this? I'm sorry I haven't provided reproducible data. I don't really know how to go about producing a sample corpus.

来源:https://stackoverflow.com/questions/33698428/subset-a-corpus-by-meta-data

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!