Socket
Book a DemoInstallSign in
Socket

scel-parser

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

scel-parser

Sogou cell dict parser

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

Scel Parser

Typescript实现的搜狗细胞词库parser

Installation

npm i scel-parser

Usage

Command Line

# this will overwrite a example.scel.json file whihout confirm
scel-parser ./example.scel

Programmatically

import { readFile } from 'fs'
import ScelParser from 'scel-parser'

readFile(__dirname + 'example.scel', (err, data) => {
  if (err) {
    throw err
  }
  const parser = new ScelParser(data)
  console.log(parser.parseInfo())
  console.log(parser.parsePinyinTable())
  console.log(parser.parseWords())  
})

Download Scel Dict

http://pinyin.sogou.com/dict/

Keywords

sogou

FAQs

Package last updated on 09 Nov 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