langml.utils
Module Contents
Functions
|
|
|
Decode BIO tags |
|
load variables from chechkpoint |
|
- langml.utils.deprecated_warning(msg='this function is deprecated! it might be removed in a future version.')[source]
- langml.utils.bio_decode(tags: List[str]) List[Tuple[int, int, str]][source]
Decode BIO tags
Examples: >>> bio_decode([‘B-PER’, ‘I-PER’, ‘O’, ‘B-ORG’, ‘I-ORG’, ‘I-ORG’]) >>> [(0, 1, ‘PER’), (3, 5, ‘ORG’)]
- langml.utils.auto_tokenizer(vocab_path: str, lowercase: bool = False) langml.tokenizer.Tokenizer[source]