module

BlingFire

Constants

SOURCE_URL = "https://github.com/kojix2/blingfire-crystal"
VERSION = {{ (`shards version /tmp/tmp.AiMABp/src/src/blingfire`).chomp.stringify }}

Instance methods

free_model(model)
Source
ids_to_text(model, ids, skip_special_tokens = true, output_buffer_size = nil)
Source
lib_version
Source
load_model(model_path)
Source
normalize_spaces(text)
Source
text_to_ids(model, text, max_len = nil, unk_id = 0)
Source
text_to_ids_with_offsets(model, text, max_len = nil, unk_id = 0)
Source
text_to_sentences(text)
Source
text_to_sentences_with_model(model, text)
Source
text_to_sentences_with_offsets(text)
Source
text_to_sentences_with_offsets_with_model(model, text)
Source
text_to_words(text)
Source
text_to_words_with_model(model, text)
Source
text_to_words_with_offsets(text)
Source
text_to_words_with_offsets_with_model(model, text)
Source

Nested types