MCPcopy Create free account
hub / github.com/dmis-lab/bern / BertModel

Class BertModel

biobert_ner/modeling.py:106–266  ·  view source on GitHub ↗

BERT model ("Bidirectional Encoder Representations from Transformers"). Example usage: ```python # Already been converted into WordPiece token ids input_ids = tf.constant([[31, 51, 99], [15, 5, 0]]) input_mask = tf.constant([[1, 1, 1], [1, 1, 0]]) token_type_ids = tf.consta

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

create_modelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected