Skip to content

Saving the custom trained ELMO embedding (hdf5) in the format of tensorhub models #242

@sathiyabalu89

Description

@sathiyabalu89

I have custom trained ELMO embedding and I would like to save it in a format as similar to the tensorflow hub model. This will enable to fetch the ELMO embedding from the data very handy as similar to below code.

import tensorflow_hub as hub
elmo = hub.Module("https://tfhub.dev/google/elmo/3", trainable=True)
embeddings = elmo(
["the cat is on the mat", "dogs are in the fog"],
signature="default",
as_dict=True)["elmo"]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions