A node script that could find chinese string in your project
-
Use
npm install
-
Use
node index.js <The file or directory you want> <output file> <avoid files>
command// example node index.js src output.csv assets images
-
If you use correctly,you could get a result as following:
-
Happy hacking
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.
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 segment
registry.
If you want to look up it,click here
- Consider multiple annotations
- Optimize word segmentation ability
- Optimize the code to solve the problem of using too much memory
- Add avoid files feature