natural README

The project's README from github.com/NaturalNode/natural. As one markdown file: README.md.

natural

NPM version Node.js CI JavaScript Style Guide GitHub Super-Linter Coverage Status CII Best Practices TypeScript support

"Natural" is a general natural language facility for nodejs. It offers a broad range of functionalities for natural language processing. Documentation can be found here on GitHub Pages.

Open source licenses

Natural: MIT License

Copyright (c) 2011, 2012 Chris Umbel, Rob Ellis, Russell Mull, Hugo W.L. ter Doest

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

WordNet License

This license is available as the file LICENSE in any downloaded version of WordNet. WordNet 3.0 license: (Download)

WordNet Release 3.0 This software and database is being provided to you, the LICENSEE, by Princeton University under the following license. By obtaining, using and/or copying this software and database, you agree that you have read, understood, and will comply with these terms and conditions.: Permission to use, copy, modify and distribute this software and database and its documentation for any purpose and without fee or royalty is hereby granted, provided that you agree to comply with the following copyright notice and statements, including the disclaimer, and that the same appear on ALL copies of the software, database and documentation, including modifications that you make for internal use or for distribution. WordNet 3.0 Copyright 2006 by Princeton University. All rights reserved. THIS SOFTWARE AND DATABASE IS PROVIDED "AS IS" AND PRINCETON UNIVERSITY MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PRINCETON UNIVERSITY MAKES NO REPRESENTATIONS OR WARRANTIES OF MERCHANT- ABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE LICENSED SOFTWARE, DATABASE OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS. The name of Princeton University or Princeton may not be used in advertising or publicity pertaining to distribution of the software and/or database. Title to copyright in this software, database and any associated documentation shall at all times remain with Princeton University and LICENSEE agrees to preserve same.

Porter stemmer German: BSD License

The Porter stemmer for German is licensed by a BSD license. It states Standard BSD License in the source code, interpreted as the original BSD license consisting of four clauses.

natural (NaturalNode/natural)

Searching Database…

10.9K ·GitHub
这是什么?Natural 是一个面向 Node.js 的通用自然语言处理库,把分词器、词干提取器、分类器等 NLP 工具打包在一个包里。
这是框架,还是只是一个我可以导入的库?它是一个普通的库,你可以在 Node.js 代码中 require 它,而不是独立应用,也不是会规定项目结构的框架。
怎样把它添加到 Node.js 项目中?用 npm 安装 'natural' 包,然后在代码中 require 它;项目自身的构建流程使用 TypeScript,并通过 Rollup 编译为 CommonJS 和 ESM 格式的打包文件。
使用它除了 Node.js 还需要别的东西吗?核心功能不需要任何外部服务;package.json 只要求 Node.js 0.4.10 或更新版本。如果你想持久化保存训练好的分类器,它可选地依赖 MongoDB、PostgreSQL、Redis 或 Memcached 的客户端。
有哪些需要注意的授权问题吗?核心代码采用 MIT 许可,但内置的 WordNet 数据使用普林斯顿大学自己的许可证,德语 Porter 词干提取器则采用单独的 BSD 许可证,因此取决于你使用的部分,适用的条款可能并不一致。
开箱即用支持哪些 NLP 任务?根据其内置依赖,它涵盖基于 AFINN-165 词典的情感打分、文本分类、多语言停用词过滤,以及用于计算相似度的向量数学工具,同时也包含常见的分词和词干提取功能。
训练好的分类器可以保存后复用吗?可以。该库附带可选的存储适配器,支持 MongoDB、PostgreSQL、Redis 和 Memcached,因此分类器可以在多次运行之间持久化保存并重新加载。
它包含用于查词的 WordNet 吗?它内置了 WordNet 3.0 词汇数据库,依据普林斯顿大学的许可证使用,因此除了自身的 NLP 工具外,还能像查词典一样查询词与词之间的关系。
我的 Node.js 版本可以多旧?该包允许 Node.js 0.4.10 或更新版本,因此几乎可以在任何现代 Node 版本上运行,不会有版本方面的麻烦。
What are similar projects?nltk, mongoose, HanLP, spaCy, doccano, compromise, flexsearch, tiktoken
Size
64 MB
Stars
10.9K
Age
15y
Commits · 90 Days