Socket
Socket
Sign inDemoInstall

topic-detection

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

topic-detection

A simple topic detection module


Version published
Weekly downloads
58
decreased by-3.33%
Maintainers
1
Weekly downloads
 
Created
Source

topic-detection

A simple topic detection module, based on Wordnet Domains data

API

new TopicDetection()

A basic constructor

detector.topics(text)

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);

License

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.

Keywords

FAQs

Package last updated on 03 Apr 2016

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc