MCPcopy Create free account
hub / github.com/PolyAI-LDN/conversational-datasets / BERTEncoder

Class BERTEncoder

baselines/vector_based.py:156–255  ·  view source on GitHub ↗

The BERT encoder that is loaded as a module from tensorflow hub. This class tokenizes the input text using the bert tokenization library. The final encoding is computed as the sum of the token embeddings. Args: uri: (string) the tensorflow hub URI for the model.

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected