mecab: Japanese Part-of-Speech and Morphological Analyze using MeCab

Description Usage Arguments Details Value Examples

Description

The mecab method of jaNLP class for Japanese PoS tagging and morphological analyze

Usage

1
2
## S4 method for signature 'jaNLP'
mecab(str = "")

Arguments

str

input single character vector for MeCab analysis

Details

MeCab is Part-of-Speech and Morphological Analyzer created by Taku Kudo
https://code.google.com/p/mecab/

The mecab method using MeCab-Option "-l 2"
See http://mecab.googlecode.com/svn/trunk/mecab/doc/index.html

Value

surface

<e8><a1><a8><e5><b1><a4><e5><bd><a2>

posid

pos-id http://mecab.googlecode.com/svn/trunk/mecab/doc/posid.html

feature

<e5><93><81><e8><a9><9e>,<e5><93><81><e8><a9><9e><e7><b4><b0><e5><88><86><e9><a1><9e>1,<e5><93><81><e8><a9><9e><e7><b4><b0><e5><88><86><e9><a1><9e>2,<e5><93><81><e8><a9><9e><e7><b4><b0><e5><88><86><e9><a1><9e>3,<e6><b4><bb><e7><94><a8><e5><bd><a2>,<e6><b4><bb><e7><94><a8><e5><9e><8b>,<e5><8e><9f><e5><bd><a2>,<e8><aa><ad><e3><81><bf>,<e7><99><ba><e9><9f><b3>

char_type

char.def

stat

MECAB_NOR=0, MECAB_UNK=1, MECAB_BOS=2, MECAB_EOS=3

cost

cumulative cost

wcost

word occur cost

alpha

foward log prob

beta

backward log prob

prob

marginal probability

Examples

1
2
3
4
5
library(RjaNLP)
example <- JaNLP$new(text = "<e3><81><99><e3><82><82><e3><82><82><e3><82><82><e3><82><82><e3><82><82><e3><82><82><e3><82><82><e3><82><82><e3><81><ae><e3><81><86><e3><81><a1>")
res.mecab <- example$mecab()
example <- JaNLP$new(text = "")
example$mecab()

yamano357/rJaNLP documentation built on May 4, 2019, 2:28 p.m.