MCPcopy Create free account

hub / github.com/baidu/Familia / types & classes

Types & classes29 in github.com/baidu/Familia

↓ 4 callersClassInferenceEngineWrapper
InferenceEngineWrapper 对InferenceEngine进行封装,避免直接操作tokenizer等对象指针 Attributes: _inference_engine: InferenceEngine对象指针,用来访问infer接口
python/demo/familia_wrapper.py:12
↓ 2 callersClassTopicalWordEmbeddingsWrapper
Topical Word Embeddings Wrapper 对Topical Word Embeddings进行包装,简化函数接口 Attributes: _twe: 指向TopicalWordEmbeddings的对象指针
python/demo/familia_wrapper.py:144
ClassDocDistanceDemo
主题模型语义匹配计算Demo类
src/demo/doc_distance_demo.cpp:27
ClassGibbsSampler
吉布斯采样器,实现了LDA和SentenceLDA两种模型的采样算法
include/familia/sampler.h:108
ClassInferenceEngine
Inference Engine 支持LDA 和Sentence-LDA两种模型的主题推断, 两种模型使用相同的存储格式 同时包含吉布斯采样和Metroplis-Hastings两种采样算法
include/familia/inference_engine.h:29
ClassLDADoc
LDA模型inference结果存储结构
include/familia/document.h:38
ClassMHSampler
基于Metropolis-Hastings的采样器实现,包含LDA和SentenceLDA两个模型的实现
include/familia/sampler.h:34
ClassPyModuleDef
python/cpp/familia_wrapper.cpp:423
ClassQueryDocSimDemo
主题模型语义匹配计算Demo类
src/demo/query_doc_sim_demo.cpp:28
ClassSLDADoc
Sentence LDA Document 继承自LDADoc,新增了add_sentence接口
include/familia/document.h:100
ClassSampler
采样器的接口
include/familia/sampler.h:22
EnumSamplerType
采样器类型
include/familia/inference_engine.h:22
ClassSemanticMatching
语义匹配计算指标类
include/familia/semantic_matching.h:80
ClassSentence
SentenceLDA文档存储基本单元,包含句子的词id以及对应的主题id
include/familia/document.h:32
ClassShowTopicDemo
展示主题模型中某个主题下重要程度最高的Top K个词
src/demo/show_topic_demo.cpp:95
ClassSimpleTokenizer
简单版本FMM分词器,仅用于主题模型应用Demo,非真实业务应用场景使用 NOTE: 该分词器只识别主题模型中词表的单词
include/familia/tokenizer.h:31
ClassToken
LDA文档存储基本单元,包含词id以及对应的主题id
include/familia/document.h:26
ClassTokenizer
分词器基类
include/familia/tokenizer.h:20
ClassTopic
主题的基本数据结构,包含id以及对应的概率
include/familia/document.h:17
ClassTopicModel
主题模型模型存储结构,包含词表和word topic count两分布 其中LDA和SentenceLDA使用同样的模型存储格式
include/familia/model.h:28
ClassTopicWordDemo
主题词展示Demo类
src/demo/topic_word_demo.cpp:29
ClassTopicalWordEmbedding
Topical Word Embedding (TWE) 模型类 包括了模型的加载及embedding的获取
include/familia/semantic_matching.h:33
ClassVocab
主题模型词表数据结构 主要负责明文单词到词id之间的映射, 若单词不在词表中,则范围OOV(-1)
include/familia/vocab.h:20
ClassVoseAlias
Vose's Alias Method 数值稳定版本实现 更多的具体细节可以参考 http://www.keithschwarz.com/darts-dice-coins/
include/familia/vose_alias.h:17
ClassWordAndDis
存储候选词以及对应距离
include/familia/semantic_matching.h:26
ClassWordCount
src/demo/show_topic_demo.cpp:32
ClassWordCountCmpGreater
src/demo/show_topic_demo.cpp:38
ClassWordDistanceDemo
寻找距离词最邻近的K个词Demo类
src/demo/word_distance_demo.cpp:25
Classengine_wrapper_t
include/familia/util.h:23