analyze: Simple version of analyze function.

View source: R/analyze.R

analyzeR Documentation

Simple version of analyze function.

Description

Simple version of analyze function.

Usage

analyze(text, top_n = 3, match_option = Match$ALL, stopwords = FALSE)

Arguments

text

target text.

top_n

integer: Number of result. Default is 3.

match_option

Match: use Match. Default is Match$ALL

stopwords

stopwords option. Default is TRUE which is to use embaded stopwords dictionany. If FALSE, use not embaded stopwords dictionany. If char: path of dictionary txt file, use file. If Stopwords class, use it. If not valid value, work same as FALSE. Check analyze() how to use stopwords param.

Examples

## Not run: 
  analyze("Test text.")
  analyze("Please use Korean.", top_n = 1)
  analyze("Test text.", 1, Match$ALL_WITH_NORMALIZING)
  analyze("Test text.", stopwords = FALSE)
  analyze("Test text.", stopwords = TRUE)
  analyze("Test text.", stopwords = "user_dict.txt")
  analyze("Test text.", stopwords = Stopwords$new(TRUE))

## End(Not run)

elbird documentation built on Aug. 12, 2022, 5:08 p.m.