Socket
Book a DemoInstallSign in
Socket

@jser/classifier-item-category

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jser/classifier-item-category

Classifier category from JSer item

latest
Source
npmnpm
Version
2.0.1
Version published
Maintainers
2
Created
Source

@jser/classifier-item-category

Classifier category from JSer item or text.

テキストからJSer.infoにおけるカテゴライズをベイズ推論して、カテゴリ名を返します。

カテゴリは次の通りです。

var Category = {
    Headline: "ヘッドライン",
    Article: "アーティクル",
    SlideVideo: "スライド、動画関係",
    WebsiteDocument: "サイト、サービス、ドキュメント",
    SoftwareLibrary: "ソフトウェア、ツール、ライブラリ関係",
    Book: "書籍関係"
};
  • jser/jser-item-category-parser: JSer.info post item category parser.
  • jser/stat-js: JSer.info stat library
  • NaturalNode/natural: general natural language facilities for nodeK

Install

Install with npm:

npm install @jser/classifier-item-category

Usage


import { fetchPostDetails } from "@jser/data-fetcher";
import { JSerClassifier, CategoryKey } from "@jser/classifier-item-category";
(async () => {
   const postDetails = await fetchPostDetails();
   const classifier = new JSerClassifier({
       postDetails
   });
   classifier.classifyText("これはGitHubで公開されている言語処理のライブラリです。");
   // === CategoryKey.SoftwareLibrary
})()

Changelog

See Releases page.

Running tests

Install devDependencies and Run npm test:

npm i -d && npm test

Contributing

Pull requests and stars are always welcome.

For bugs and feature requests, please create an issue.

  • Fork it!
  • Create your feature branch: git checkout -b my-new-feature
  • Commit your changes: git commit -am 'Add some feature'
  • Push to the branch: git push origin my-new-feature
  • Submit a pull request :D

Author

License

MIT © azu

Keywords

jser

FAQs

Package last updated on 06 May 2025

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