Giter VIP home page Giter VIP logo

scel's Introduction

English 中文

scel

Sougou scel dict - 搜狗 scel 词库工具

  • Scel to Protobuf
    • Easy to use in web
    • Easy to use in other language
    • No need to parse
  • Useful scel command
    • info - Info about dict
    • conv - Conversion between format
      • Optional remove ext data
        • 10 b/word
      • Optional optimized ext data
        • Trime zero
        • 10 b/word -> 2-4 b/word
      • Optional remove common pinyin table
  • Provide typescript scel reader
Opt. 全国省市区县地名.scel 76K
N/A out.pb 73K
-oe out.pb 53K
-ee out.pb 43K
-eP out.pb 71K
-oe -eP out.pb 50K

搜狗词库

  • 将 Scel 转换为 Protobuf 文件格式
    • 简化 web 使用
    • 简化其它语言使用
    • 不需要解析
  • 非常有用的 scel 命令行工具
    • info - 词库信息
    • conv - 格式转换
      • 可移除扩展数据
        • 每个词有 10 byte 的扩展数据
      • 可优化扩展数据
        • 移除尾 0
        • 10 b/word -> 2-4 b/word
      • 可移除常用的拼音表
  • 提供 typescript 的 scel 解析器

CLI

# Install
go get github.com/wenerme/scel/cmd/scel

# Info
scel info 全国省市区县地名.scel 
# file: 全国省市区县地名.scel
# name: 全国省市区县地名
# type: 单位机构名
# desc: 比搜狗自带的还全!!!
# e.g.: 澳门 重庆 福建 河北 黑龙江 江西 

# Conversion
# Convert scel to pb without `ext` data
scel conv -E 全国省市区县地名.scel city.pb

JS

# Build js
yarn build

Dev

# Generate pb
protoc --go_out=plugins=grpc,import_path=telattr:$HOME/go/src/ *.proto

scel's People

Contributors

wenerme avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.