Skip to contents

export_concept_vocabulary() writes a checksummed JSON manifest (token list, size, SHA-256, no patient data); import_concept_vocabulary() rebuilds the tokenizer with identical ids and refuses a corrupted or foreign file. The file format is shared with the Python functions of the same names.

Usage

export_concept_vocabulary(tokenizer, path, name = "history")

import_concept_vocabulary(path)

Arguments

tokenizer

from build_concept_tokenizer() (or any list with concept_list)

path

file path

name

label.

Value

export_concept_vocabulary(): the manifest (invisibly); import_concept_vocabulary(): the tokenizer.