Constructs a dictionary from a character vector or a term-document matrix.
构造一个字符向量或术语文档矩阵的字典。
用法----------Usage----------
## S3 method for class 'character'
Dictionary(x)
## S3 method for class 'TermDocumentMatrix'
Dictionary(x)
参数----------Arguments----------
参数:x
A character vector or a term-document matrix holding the terms for the dictionary.
字符向量或术语文档矩阵的字典。
值----------Value----------
An object of class Dictionary which extends the class character representing a dictionary, i.e., a character vector of terms.
对象的类Dictionary扩展类character一本字典,即一个字符向量的条款。