Description Usage Arguments Value Author(s) Examples
Read a corpus vector and generate the dictionary data frame.
| 1 2 | createDict(trainvec, dicfile = NULL, wordsplit = "\\s+",
  natruesplit = "/")
 | 
| trainvec | A character vector of corpus. | 
| dicfile | The path of output file. Defult is NULL. | 
| wordsplit | Character containing regular expression to use for splitting words. | 
| natruesplit | Character containing regular expression to use for splitting nature. | 
A data frame of:
| word | Word. | 
| freq | Frequency. | 
| nature | Nature. | 
Jian Li <rweibo@sina.com>
| 1 2 3 | data(PD980105)
d1 <- createDict(PD980105[1:10])
head(d1)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.