MCPcopy Create free account

hub / github.com/baidu/Familia / functions

Functions145 in github.com/baidu/Familia

Methodl2_norm
计算向量的长度,传入的是embedding NOTE: 可用SSE进行向量运算加速,此处为了代码可读性不进行优化
include/familia/semantic_matching.h:84
Methodlda_infer
src/inference_engine.cpp:78
Methodlikelihood_based_similarity
使用短文本到长文本之间的似然值表示之间的相似度
include/familia/semantic_matching.h:108
Methodload_emb
src/semantic_matching.cpp:36
Methodload_model
src/model.cpp:29
Methodload_topic_words
读取主题模型的每个主题下的展现结果
src/demo/topic_word_demo.cpp:63
Methodload_vocab
src/tokenizer.cpp:59
Methodload_word_topic
src/model.cpp:46
Functionmain
src/demo/show_topic_demo.cpp:135
Functionmain
src/demo/topic_word_demo.cpp:97
Functionmain
src/demo/doc_distance_demo.cpp:81
Functionmain
src/demo/query_doc_sim_demo.cpp:83
Functionmain
src/demo/word_distance_demo.cpp:62
Functionmain
src/demo/inference_demo.cpp:33
Functionnearest_words
返回与目标词最相关的K个词
python/cpp/familia_wrapper.cpp:327
Functionnearest_words_around_topic
返回对应主题下最邻近的词
python/cpp/familia_wrapper.cpp:361
Methodnum_topics
include/familia/model.h:67
Methodoperator()
src/demo/show_topic_demo.cpp:39
Methodoperator<
topic probability
include/familia/document.h:20
Methodprint_result
打印结果
src/demo/topic_word_demo.cpp:47
Methodprint_result
打印结果
src/demo/word_distance_demo.cpp:46
Methodprint_tokens
打印分词结果
src/demo/doc_distance_demo.cpp:66
Methodprint_tokens
打印分词结果
src/demo/query_doc_sim_demo.cpp:66
Methodproportional_funtion
src/sampler.cpp:153
Methodpropose
src/sampler.cpp:26
Methodsample_sentence
src/sampler.cpp:51
Methodsample_token
src/sampler.cpp:41
Methodsize
返回文档句子数量
include/familia/document.h:113
Methodsize
离散分布的维度
include/familia/vose_alias.h:28
Methodslda_infer
src/inference_engine.cpp:92
Functiontokenize
分词
python/cpp/familia_wrapper.cpp:135
Methodtolower
返回对应字符的小写字符,如无对应小写字符则返回原字符
include/familia/tokenizer.h:55
Methodtwe_based_similarity
基于Topical Word Embedding (TWE) 计算短文本与长文本的相似度 输入短文本明文分词结果,长文本主题分布,TWE模型,返回长文本与短文本语义相似度
include/familia/semantic_matching.h:140
Methodword_proposal
src/sampler.cpp:115
Methodword_proposal_distribution
src/sampler.cpp:193
Method~DocDistanceDemo
src/demo/doc_distance_demo.cpp:34
Method~InferenceEngine
include/familia/inference_engine.h:31
Method~QueryDocSimDemo
src/demo/query_doc_sim_demo.cpp:36
Method~Sampler
include/familia/sampler.h:24
Method~ShowTopicDemo
src/demo/show_topic_demo.cpp:111
Method~SimpleTokenizer
include/familia/tokenizer.h:37
Method~Tokenizer
include/familia/tokenizer.h:24
Method~TopicWordDemo
src/demo/topic_word_demo.cpp:36
Method~TopicalWordEmbedding
include/familia/semantic_matching.h:41
Method~WordDistanceDemo
src/demo/word_distance_demo.cpp:30
← previous101–145 of 145, ranked by callers