pos: Return pos results of MeCab by data.frame

Description Usage Arguments Value Examples

View source: R/pos.R

Description

pos() can return either surface form or base form of word and its pos information.

Usage

1
pos(text, type = c("surface", "base"), id_name = "id", dic = "", etc = "")

Arguments

text

character vector.

type

character. either "surface" or "base".

id_name

character or NULL. a name of a sentence id column. If NULL, id column is not made.

dic

character. a path to a user dictionary.

etc

character. options to mecab.

Value

data.frame.

Examples

1
2
3
4
## Not run: 
pos(text,type="surface",id_name="id",dic="",etc="")

## End(Not run)

suzuna/mecabtools documentation built on Feb. 25, 2021, 7:27 p.m.