Text Encoders

Utilities for text lookup, caching, and encoding.

Classes

CharacterEmbeddingTextEncoder([dim, ...])

A simple character-based text encoder.

IdentityCache()

A cache without functionality.

PyOBOTextCache()

A cache that looks up labels of biomedical entities based on their CURIEs.

TextCache()

An interface for looking up text for various flavors of entity identifiers.

TextEncoder(*args, **kwargs)

An encoder for text.

TransformerTextEncoder([...])

A combination of a tokenizer and a model.

WikidataTextCache()

A cache for requests against Wikidata's SPARQL endpoint.

Variables

text_cache_resolver

Resolve from a list of classes.

text_encoder_resolver

Resolve from a list of classes.

Class Inheritance Diagram

Inheritance diagram of pykeen.nn.text.encoder.CharacterEmbeddingTextEncoder, pykeen.nn.text.cache.IdentityCache, pykeen.nn.text.cache.PyOBOTextCache, pykeen.nn.text.cache.TextCache, pykeen.nn.text.encoder.TextEncoder, pykeen.nn.text.encoder.TransformerTextEncoder, pykeen.nn.text.cache.WikidataTextCache