Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
topic-detection
Advanced tools
A simple topic detection module, based on Wordnet Domains data
A basic constructor
Returns a list of topics with normalized scores. There isn't a reliable order as JavaScript doesn't allow that, so you'll need to sort by score yourself to get the top scored topic.
var TopicDetection = require('topic-detection');
var detector = new TopicDetection();
var scores = detector.topics(myText);
Available under the MIT License. This module also contains data based on the Wordnet Domains data, used under the Creative Commons Attribution 3.0 Unported License.
Publications or presentations containing research results obtained through the use of WordNet Domains should cite at least one of the following references:
Luisa Bentivogli, Pamela Forner, Bernardo Magnini and Emanuele Pianta. "Revising WordNet Domains Hierarchy: Semantics, Coverage, and Balancing", in COLING 2004 Workshop on "Multilingual Linguistic Resources", Geneva, Switzerland, August 28, 2004, pp. 101-108.
Bernardo Magnini and Gabriela Cavaglià. "Integrating Subject Field Codes into WordNet", in Gavrilidou M., Crayannis G., Markantonatu S., Piperidis S. and Stainhaouer G. (Eds.) Proceedings of LREC-2000, Second International Conference on Language Resources and Evaluation, Athens, Greece, 31 May - 2 June, 2000, pp. 1413-1418.
FAQs
A simple topic detection module
The npm package topic-detection receives a total of 50 weekly downloads. As such, topic-detection popularity was classified as not popular.
We found that topic-detection demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.