nlp_architect.data.cdc_resources.embedding package

Submodules

nlp_architect.data.cdc_resources.embedding.embed_elmo module

class nlp_architect.data.cdc_resources.embedding.embed_elmo.ElmoEmbedding[source]

Bases: object

apply_get_from_cache(sentence: str, context: bool = False, indexs: List[int] = None)[source]
get_avrg_feature_vector(tokens_str)[source]
get_elmo_avg(sentence)[source]
get_head_feature_vector(mention: nlp_architect.common.cdc.mention_data.MentionDataLight)[source]
static get_mention_vec_from_sent(sent_vec, indexs)[source]
class nlp_architect.data.cdc_resources.embedding.embed_elmo.ElmoEmbeddingOffline(dump_file)[source]

Bases: object

get_avrg_feature_vector(tokens_str)[source]
get_head_feature_vector(mention: nlp_architect.common.cdc.mention_data.MentionDataLight)[source]

nlp_architect.data.cdc_resources.embedding.embed_glove module

class nlp_architect.data.cdc_resources.embedding.embed_glove.GloveEmbedding(glove_file)[source]

Bases: object

static load_glove_for_vocab(glove_filename)[source]
class nlp_architect.data.cdc_resources.embedding.embed_glove.GloveEmbeddingOffline(embed_resources)[source]

Bases: object

get_avrg_feature_vector(tokens_str)[source]
get_feature_vector(mention: nlp_architect.common.cdc.mention_data.MentionDataLight)[source]

Module contents