Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

text-rank-tag

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

text-rank-tag

The TextRank algorithm that automagically creates a tag cloud from text

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

What's TextRank? It's an algorithm that adapts Google's PageRank to auto-magically build a tag cloud from a text.

Usage

Add text rank to your package.json.

 "dependencies": {

    //...

    "text-rank": "git://github.com/frankandrobot/text-rank.git#master"
  }

Then just do

var textrank = require('text-rank'),

    rslt = textrank.generateTags("Content ...")

The result will be a JSON object with a tags property containing an array of tags

Run the tests

npm install //you may need to do sudo npm install

jasmin-node tests

Credits

  • Rada Mihalcea and Paul Tarau, TextRank: Bringing Order into Texts
  • pos-js - fast part-of-speech tagger

Keywords

FAQs

Package last updated on 29 Oct 2018

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