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

uclassify

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

uclassify

A node module for accessing uclassify api (A free machine learning web service where you can easily create and use text classifier).

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

uClassify

A node module for accessing uclassify api (A free machine learning web service where you can easily create and use text classifier).


var analytics = require('uclassify');

var analysis = new analytics("read_api_key","write_api_key");// The read and write api key can be obtained by creating an uclassify account in the https://www.uclassify.com for free..
//they provide 500 request for free daily..

//Ex: Here shown is a short news data that is being passed on and the response is as shown..
analysis.news_classifier({"data":["Genetic Factors May Contribute to Adverse Effects Produced by Synthetic Cannabinoids"]},function(err,data){
	if(err){console.log(err);
	}
	else{
		console.log(data);
	}
});

//Response: 
/*
[
  {
    "textCoverage": 0.818182,
    "classification": [
      {
        "className": "Business",
        "p": 7.29068e-7
      },
      {
        "className": "Entertainment",
        "p": 2.3082e-7
      },
      {
        "className": "Fashion",
        "p": 2.86937e-7
      },
      {
        "className": "Finance",
        "p": 2.72049e-7
      },
      {
        "className": "Food",
        "p": 0.0000305918
      },
      {
        "className": "Global",
        "p": 4.29919e-7
      },
      {
        "className": "Health",
        "p": 0.999962
      },
      {
        "className": "Home",
        "p": 0.00000118741
      },
      {
        "className": "Men",
        "p": 0.00000209058
      },
      {
        "className": "Parents",
        "p": 4.27748e-7
      },
      {
        "className": "Sports",
        "p": 2.48894e-7
      },
      {
        "className": "Technology",
        "p": 3.53696e-7
      },
      {
        "className": "US",
        "p": 8.36654e-7
      },
      {
        "className": "Women",
        "p": 3.83611e-7
      }
    ]
  }
]
*/

Setting up

Install with npm

npm install uclassify

uclassify also supports:

  • attitude_analysis
  • news_classifier
  • gender_classifier
  • age_analysis
  • tone_analysis
  • subject_classifier
  • society_categ_analysis
  • language_analysis
  • sentiment_analysis
  • mood_analysis

Important Notes:

  • Its is an asynchronous one so use it accordingly.
  • For further details refer https://www.uclassify.com

Keywords

FAQs

Package last updated on 25 Apr 2017

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