sgnlp.models.rst_pointer.modules.elmo.initialize_elmo

initialize_elmo(size: str = 'Large')Tuple[allennlp.modules.elmo.Elmo, int][source]

Helper function to create Elmo object.

Parameters

size (str) – size of elmo model to use. Sizes available: [“Small”, “Medium”, “Large”]

Returns

return initialized elmo object and the word dimension.

Return type

Tuple[Elmo, int]