TokenClassificationTranslator

public final class TokenClassificationTranslator implements Translator<String, List<String>>

Constructors

Link copied to clipboard

Functions

Link copied to clipboard
public Batchifier getBatchifier()
Link copied to clipboard
public final Map<Integer, String> getConfig()
Link copied to clipboard
public final HuggingFaceTokenizerWrapper getTokenizer()
Link copied to clipboard
public Unit prepare(TranslatorContext p0)
Link copied to clipboard
public NDList processInput(TranslatorContext ctx, String input)
Link copied to clipboard
public List<String> processOutput(TranslatorContext ctx, NDList list)

Properties

Link copied to clipboard
private final Map<Integer, String> config
Link copied to clipboard
private final HuggingFaceTokenizerWrapper tokenizer