pos: POS tagging by mecab-ko

Description Usage Arguments Details Value Examples

View source: R/pos.R

Description

pos returns part-of-speech (POS) tagged morpheme of Korean phrases.

Usage

1
2
pos(sentence, join = TRUE, format = c("list", "data.frame"),
  sys_dic = "", user_dic = "", parallel = FALSE)

Arguments

sentence

Character vector.

join

Boolean to determine providing POS tags with the morphemes or not. The default value is TRUE.

format

A data type for the result. The default value is "list". You can set this to "data.frame" to get a result as data frame format.

sys_dic

A location of system MeCab dictionary. The default value is "".

user_dic

A location of user-specific MeCab dictionary. The default value is "".

parallel

Boolean to determine using parallel analyzing. The default value is FALSE.

Details

This is a basic function of part-of-speech tagging by mecab-ko. The function coerces input to UTF-8.

Value

List of POS tagged morpheme will be returned in conjoined character vecter form. Element name of the list are original phrases. If join=FALSE, it returns list of morpheme with named with tags.

See examples in Github.

Examples

1
2
3
4
5
## Not run: 
pos(c("Some Korean Phrases"))
pos(c("Some Korean Phrases"), join=FALSE)

## End(Not run)

junhewk/RmecabKo documentation built on May 21, 2019, 3:03 a.m.