Giter VIP home page Giter VIP logo

lexicon-parser's Introduction

词库解析工具

支持搜狗、百度和qq输入法的词典解析

使用说明

  1. 下载命令行程序

  2. 查看帮助文档

./lexicon-parser -h
Usage of ./lexicon-parser:
  -i string
    	input file path[required]
  -o string
    	output file path
  -t string
    	kind. eg: qq|sogou|baidu
  1. 解析词库

输出文件每行包含三个字段,分别为词条,拼音,词频

$ ./lexicon-parser -i '金融机构.scel' 
2022/04/25 22:34:53 metainfo
title: 金融机构
categoty:理工类
description:金融机构
sample:政府银行 城市银行 存款银行 商人银行 实业银行 

阿拉伯货币基金组织      alabohuobijijinzuzhi    16
阿拉伯经济和社会发展基金        alabojingjiheshehuifazhanjijin  15
阿姆斯特丹鹿特丹银行    amusitedanlutedanyinhang        43
巴克莱银行      bakelaiyinhang  64
巴黎国民银行    baliguominyinhang       58
巴黎荷兰金融公司        balihelanjinronggongsi  53
...
2022/04/25 22:34:53 Done. input:金融机构.scel

lexicon-parser's People

Contributors

vinxv avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

smarteng

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.