GithubHelp home page GithubHelp logo

calculate-cn-node's Introduction

calculate-cn-node

A node script that could find chinese string in your project

Usage

  1. Use npm install

  2. Use node index.js <The file or directory you want> <output file> <avoid files> command

    // example
    node index.js src output.csv assets images
  3. If you use correctly,you could get a result as following:

    image-20230709001601231

  4. Happy hacking

Tip

The index.js file must be located in the root directory of your project.

or, you could configure the command to adjust dynamically.

The same time, files you want to avoid must also be located in the the file or directory you want.

Note

The disadvantage of this script is that it cannot make Chinese text form a word. If you want to solve this problem, maybe search about nodejieba registry etc.

These problems above are resolved,by using segmentregistry.

If you want to look up it,click here

Todo

  • Consider multiple annotations
  • Optimize word segmentation ability
  • Optimize the code to solve the problem of using too much memory
  • Add avoid files feature

calculate-cn-node's People

Contributors

licodeao avatar

Stargazers

 avatar

Watchers

 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.