.new_morphemepiece_vocabulary {morphemepiece}R Documentation

Constructor for Class morphemepiece_vocabulary

Description

Constructor for Class morphemepiece_vocabulary

Usage

.new_morphemepiece_vocabulary(vocab, vocab_split, is_cased)

Arguments

vocab

Character vector; the "actual" vocabulary.

vocab_split

List of character vectors; the split vocabulary.

is_cased

Logical; whether the vocabulary is cased.

Value

The vocabulary with is_cased attached as an attribute, and the class morphemepiece_vocabulary applied. The split vocabulary is also attached as an attribute.


[Package morphemepiece version 1.2.3 Index]