termCount: Term Count

Description Usage Arguments Details Author(s) Examples

View source: R/CTM.R

Description

Computing term count from text documents

Usage

1
2
termCount(doc, EngTermDeleted = TRUE, NumTermDeleted = TRUE,
  shortTermDeleted = TRUE)

Arguments

doc

The Chinese text document.

EngTermDeleted

remove English from text documents.

NumTermDeleted

remove Numbers from text documents.

shortTermDeleted

Deltected short word when nchar <2.

Details

This function run a Chinese word segmentation by jiebeR and compute term count from all these text document.

Author(s)

Jim Liu

Examples

1
2
3
4
5
6
7
library(CTM)
a1 <- "hello taiwan"
b1 <- "world of tank"
c1 <- "taiwan weather"
d1 <- "local weather"
text1 <- t(data.frame(a1,b1,c1,d1))
count1 <- termCount(doc = text1, EngTermDeleted=FALSE, shortTermDeleted = FALSE)

CTM documentation built on May 19, 2017, 8:08 a.m.

Search within the CTM package
Search all R packages, documentation and source code