NAME
Text::Shirasu::Tree - Shirasu Tree Object for Text::CaboCha
SYNOPSIS
use utf8;
use feature ':5.10';
use Text::Shirasu;
my $ts = Text::Shirasu->new(cabocha => 1);
$ts->parse("昨日の晩御飯は「鮭のふりかけ」と「味噌汁」だけでした。");
for my $tree (@{ $ts->trees }) {
say $tree->cid;
say $tree->link;
say $tree->head_pos;
say $tree->func_pos;
say $tree->score;
say $tree->surface;
say for @{ $tree->feature };
say $tree->ne;
}
DESCRIPTION
Text::Shirasu::Tree like Text::CaboCha::Token, Text::CaboCha::Chunk.
SEE ALSO
AUTHOR
Kei Kamikawa <x00.x7f@gmail.com>