class BlingFire::Model

Defined in:

blingfire/model.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(path) #

[View source]

Instance Method Detail

def finalize #

[View source]
def ids_to_text(ids, skip_special_tokens = true, output_buffer_size = nil) #

[View source]
def text_to_ids(text, max_len = nil, unk_id = 0) #

[View source]
def text_to_ids_with_offsets(text, max_len = nil, unk_id = 0) #

[View source]
def text_to_sentences(text) #

[View source]
def text_to_sentences_with_offsets(text) #

[View source]
def text_to_words(text) #

[View source]
def text_to_words_with_offsets(text) #

[View source]
def to_unsafe : Pointer(Void) #

[View source]