@Override
    public List<Integer> embed(String text, Context context) {
        return resolveModelFrom(context.getLanguage()).embed(text, tokenizer);
    }
Segments the given text into token segments from the WordPiece vocabulary and returns the token ids.

@param text the text to segment. The text should be of a language using space-separated words.
@param context the context which specifies the language used to select a model
@return the list of zero or more token ids resulting from segmenting the input text
linguistics-components/src/main/java/com/yahoo/language/wordpiece/WordPieceEmbedder.java