dot-new_morphemepiece_vocabulary: Constructor for Class morphemepiece_vocabulary

.new_morphemepiece_vocabularyR 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.


morphemepiece documentation built on April 16, 2022, 5:05 p.m.