Home
Softono
b

baidu

Professional software vendor delivering innovative solutions on the Softono platform. Specialized in both open-source and proprietary software development.

Total Products
3

Software by baidu

NoahV
Open Source

NoahV

# NoahV 简体中文 | [English](./README_EN.md) <a href="https://travis-ci.com/baidu/NoahV"> <img src="https://img.shields.io/travis/com/baidu/NoahV?style=flat-square" alt="build"> </a> <a href="https://github.com/baidu/NoahV/blob/master/LICENSE"> <img src="https://img.shields.io/github/license/baidu/NoahV.svg?style=popout-square" alt="license"> </a> <a href="https://github.com/baidu/NoahV/issues"> <img src="https://img.shields.io/github/issues/baidu/NoahV.svg?style=flat-square" alt="open issues"> </a> <a href="https://github.com/baidu/NoahV/commits/master"> <img src="https://img.shields.io/github/commit-activity/w/baidu/NoahV.svg?style=flat-square" alt="commit"> </a> NoahV是一个基于vue开发的前端应用框架,主要适用于常见的后台管理系统,文档地址:[https://baidu.github.io/NoahV](https://baidu.github.io/NoahV), 如访问速度较慢,可尝试访问如下地址:[https://noahv.gitee.io/](https://noahv.gitee.io/) 特性: * 上手简单,提供常用的各类组件,快速开始前端开发 * 导航栏、页面布局JSON配置,无需代码逻辑开发 * API数据模拟和API数据代理,让前后端不再耦合,联调更简单,效率更高 * 数据仪表盘功能,满足常见的数据可视化需求,助力数据分析场景 * 内置模版,只需简单配置就可以开发出想要的页面,非前端同学也能快速上手开发 * 实用的脚手架功能,项目初始化、模板复用、模拟数据创建、调试server启动、框架升级一行命令通通搞定 ## 快速开始 NoahV框架依赖Nodejs 6.0,在执行如下步骤之前,请确保已经安装 <a href="https://nodejs.org/en/">Node.js</a> v6.0 或以上。 1.安装脚手架工具 ```shell # 安装noahv-cli $ npm install noahv-cli -g # 查看使用帮助 $ noahv --help ``` 2.初始化一个项目 ```shell # 创建一个空目录,进入目录中,运行noahv init 命令创建一个通用项目 $ mkdir project && cd project && noahv init # 运行noahv init --dashboard 命令创建一个包含仪表盘功能的项目 $ mkdir project && cd project && noahv init --dashboard ``` 3.运行项目 ```shell # 在项目根目录启动调试server $ noahv start ``` 4.复用模板 ```shell # 在项目根目录复用模板创建页面 $ noahv create # 根据提示选择需要创建的页面类型,目前支持form、list、filterList、chart四种模板类型 ``` 详细信息请查看 [模板使用](https://baidu.github.io/NoahV/#/guide/tpl) 更多关于框架的使用请查看 [NoahV开发指南](https://baidu.github.io/NoahV/#/guide/about) ## 讨论 | 微信群 | GitHub issues | | ---------- | ------------------------------------------------------------ | | <img src="https://noahv.cdn.bcebos.com/github%2Ff414efb2572218cd6756ca483.jpg" width="120px"> | [issues](https://github.com/baidu/NoahV/issues) | ## 参与共建 欢迎大家一起参与NoahV的共建,详情请参考[贡献指南](./CONTRIBUTING.md). ## License Apache License 2.0

Project Management Code Quality & Linting
631 Github Stars
Familia
Open Source

Familia

<a href="http://github.com/baidu/Familia"> <img style="vertical-align: top;" src="https://raw.githubusercontent.com/wiki/baidu/Familia/img/logo.png?raw=true" alt="logo" height="140px"> </a> [![Build Status][image-1]][1] [![License][image-2]]() **Familia** 开源项目包含文档主题推断工具、语义匹配计算工具以及基于工业级语料训练的三种主题模型:Latent Dirichlet Allocation(LDA)、SentenceLDA 和Topical Word Embedding(TWE)。 支持用户以“拿来即用”的方式进行文本分类、文本聚类、个性化推荐等多种场景的调研和应用。考虑到主题模型训练成本较高以及开源主题模型资源有限的现状,我们会陆续开放基于工业级语料训练的多个垂直领域的主题模型,以及这些模型在工业界的典型应用方式,助力主题模型技术的科研和落地。([**English**][10]) ## News!!! 近期,我们在[PaddleHub](https://github.com/PaddlePaddle/PaddleHub) 1.8版本中上线了**Familia**中的LDA模型,根据数据集的不同,区分为lda_news、lda_novel和lda_webpage。 PaddleHub使用起来非常便捷,我们以lda_news的使用来进行例子介绍。 1. 首先,在使用PaddleHub之前,需要先安装PaddlePaddle深度学习框架,更多安装说明请查阅[飞桨快速安装](https://www.paddlepaddle.org.cn/install/quick)。 2. 安装Paddlehub: `pip install paddlehub` 3. lda_news模型安装:`hub install lda_news` 4. 具体使用: ``` python import paddlehub as hub lda_news = hub.Module(name="lda_news") jsd, hd = lda_news.cal_doc_distance(doc_text1="今天的天气如何,适合出去游玩吗", doc_text2="感觉今天的天气不错,可以出去玩一玩了") # jsd = 0.003109, hd = 0.0573171 lda_sim = lda_news.cal_query_doc_similarity(query='百度搜索引擎', document='百度是全球最大的中文搜索引擎、致力于让网民更便捷地获取信息,找到所求。百度超过千亿的中文网页数据库,可以瞬间找到相关的搜索结果。') # LDA similarity = 0.06826 results = lda_news.cal_doc_keywords_similarity('百度是全球最大的中文搜索引擎、致力于让网民更便捷地获取信息,找到所求。百度超过千亿的中文网页数据库,可以瞬间找到相关的搜索结果。') # [{'word': '百度', 'similarity': 0.12943492762349573}, # {'word': '信息', 'similarity': 0.06139783578769882}, # {'word': '找到', 'similarity': 0.055296603463188265}, # {'word': '搜索', 'similarity': 0.04270794098349327}, # {'word': '全球', 'similarity': 0.03773627056367886}, # {'word': '超过', 'similarity': 0.03478658388202199}, # {'word': '相关', 'similarity': 0.026295857219683725}, # {'word': '获取', 'similarity': 0.021313585287833996}, # {'word': '中文', 'similarity': 0.020187103312009513}, # {'word': '搜索引擎', 'similarity': 0.007092890537169911}] ``` 更加具体的介绍和使用方法可以看这里:https://www.paddlepaddle.org.cn/hublist?filter=en_category&value=SemanticModel ## 应用介绍 **Familia**目前包含的主题模型的对应论文介绍可以参考[相关论文][3]。 主题模型在工业界的应用范式可以抽象为两大类: 语义表示和语义匹配。 - **语义表示 (Semantic Representation)**    对文档进行主题降维,获得文档的语义表示,这些语义表示可以应用于文本分类、文本内容分析、CTR预估等下游应用。 - **语义匹配 (Semantic Matching)** 计算文本间的语义匹配度,我们提供两种文本类型的相似度计算方式: - 短文本-长文本相似度计算,使用场景包括文档关键词抽取、计算搜索引擎查询和网页的相似度等等。 - 长文本-长文本相似度计算,使用场景包括计算两篇文档的相似度、计算用户画像和新闻的相似度等等。 更详细的内容及工业界应用案例可以参考[**Familia Wiki**][4] , 如果想要对上述应用范式进行基于Web的可视化展示,可以参考[**Familia-Visualization**][12]。 ## 代码编译 第三方依赖包括`gflags-2.0`,`glogs-0.3.4`,`protobuf-2.5.0`, 同时要求编译器支持C++11, `g++ >= 4.8`, 兼容Linux和Mac操作系统。 默认情况下执行以下脚本会自动获取依赖并安装。 $ sh build.sh # 包含获取并安装第三方依赖的过程 ## 模型下载 $ cd model $ sh download_model.sh * 关于模型的详细配置说明可以参考[模型说明][5] 我们会陆续开放不同领域的多种主题模型,来满足更多不同的场景需求。 ## Demo **Familia**自带的Demo包含以下功能: - **语义表示计算** 利用主题模型对输入文档进行主题推断,以得到文档的主题降维表示。 - **语义匹配计算**   计算文本之间的相似度,包括短文本-长文本、长文本-长文本间的相似度计算。 - **模型内容展现**    对模型的主题词,近邻词进行展现,方便用户对模型的主题有直观的理解。 具体的Demo使用说明可以参考[使用文档][6] ## 注意事项 * 若出现找不到libglog.so, libgflags.so等动态库错误,请添加third\_party至环境变量的`LD_LIBRARY_PATH`中。 `export LD_LIBRARY_PATH=./third_party/lib:$LD_LIBRARY_PATH` * 代码中内置简易的FMM分词工具,只针对主题模型中出现的词表进行正向匹配。若对分词和语义准确度有更高要求,建议使用商用分词工具,并使用自定义词表的功能导入主题模型中的词表。 ## 问题咨询 欢迎提交任何问题和Bug Report至[Github Issues][7]。 或者发送咨询邮件至{ familia } at baidu.com ## Docker ``` docker run -d \ --name familia \ -e MODEL_NAME=news \ -p 5000:5000 \ orctom/familia ``` MODEL_NAME can be one of `news`/`novel`/`webpage`/`webo` ### API ``` http://localhost:5000/swagger/ ``` ## Citation The following article describes the Familia project and industrial cases powered by topic modeling. It bundles and translates the Chinese documentation of the website. We recommend citing this article as default. Di Jiang, Yuanfeng Song, Rongzhong Lian, Siqi Bao, Jinhua Peng, Huang He, Hua Wu. 2018. [Familia: A Configurable Topic Modeling Framework for Industrial Text Engineering][8]. arXiv preprint arXiv:1808.03733. @article{jiang2018familia, author = {Di Jiang and Yuanfeng Song and Rongzhong Lian and Siqi Bao and Jinhua Peng and Huang He and Hua Wu}, title = {{Familia: A Configurable Topic Modeling Framework for Industrial Text Engineering}}, journal = {arXiv preprint arXiv:1808.03733}, year = {2018} } Further Reading: [Federated Topic Modeling][11] ## Copyright and License Familia is provided under the [BSD-3-Clause License][9]. [1]: http://travis-ci.org/baidu/Familia [3]: https://github.com/baidu/Familia/wiki/%E5%8F%82%E8%80%83%E6%96%87%E7%8C%AE [4]: https://github.com/baidu/Familia/wiki [5]: https://github.com/baidu/Familia/blob/master/model/README.md [6]: https://github.com/baidu/Familia/wiki/Demo%E4%BD%BF%E7%94%A8%E6%96%87%E6%A1%A3 [7]: https://github.com/baidu/Familia/issues [8]: https://arxiv.org/abs/1808.03733v2 [9]: LICENSE [10]: https://github.com/baidu/Familia/blob/master/README.EN.md [11]: https://github.com/baidu/Familia/blob/master/papers/FTM.pdf [12]: https://github.com/gmission/Familia-Visualization [image-1]: https://travis-ci.org/baidu/Familia.svg?branch=master [image-2]: https://img.shields.io/pypi/l/Django.svg

AI & Machine Learning ML Frameworks
2.6K Github Stars
Dialogue
Open Source

Dialogue

Dialogue is an advanced toolkit for open-domain human-computer conversation systems developed by the Baidu NLP Dialogue team. It specializes in building and optimizing neural dialogue systems, supporting both sequence-to-sequence generation and context-response matching tasks. The software incorporates cutting-edge models like ERNIE English to achieve state-of-the-art performance on benchmarks such as the Ubuntu Corpus. Key capabilities include knowledge-driven dialogue, life-long learning via reinforcement learning, and multi-view response selection. The toolkit serves research and industry applications, powering large-scale chatbots like DuerOS used by hundreds of millions of users daily. It is designed to help developers create smart devices capable of natural open-domain conversations. The project is released under the MIT license and is part of the broader PaddleNLP ecosystem, offering system-level solutions for chatbot deployment. It is backed by significant academic research published in top-tier confe

ML Frameworks Live Chat & Chatbots
442 Github Stars