MCPcopy Create free account
hub / github.com/HA-Transformer/MAT / parse_embedding

Function parse_embedding

fairseq/utils.py:115–132  ·  view source on GitHub ↗

Parse embedding text file into a dictionary of word and embedding tensors. The first line can have vocabulary size and dimension. The following lines should contain word and embedding separated by spaces. Example: 2 5 the -0.0230 -0.0264 0.0287 0.0171 0.1403

(embed_path)

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