Skip to content
This repository was archived by the owner on Jul 4, 2020. It is now read-only.

ericcornelissen/controlled-vocab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

controlled-vocab

A simple multi-threaded Python CLI tool to created a controlled vocabulary.

Usage

To convert a single input file into a single output file:

$ python controlled-vocab.py --input input.txt --output output.txt

To convert multiple files into multiple output files:

$ python controlled-vocab.py --input input_a.txt input_b.txt --output output_a.txt output_b.txt

To convert multiple files and fuse the result into a single output file:

$ python controlled-vocab.py -f --input input_a.txt input_b.txt --output output.txt

To convert some input with case sensitivity:

$ python controlled-vocab.py --input input.txt --output output.txt --case-sensitive

To convert some input and keep the mapping:

$ python controlled-vocab.py --input input-a.txt --output output.txt mapping.json

To convert some other input using that mapping:

$ python controlled-vocab.py --input input-b.txt --mapping mapping.json

To put it all together: convert multiple input files fusing the result into a single file using an existing mapping and updating it after this conversion, with case sensitivity:

$ python controlled-vocab.py -f -c --i input-a.txt input-b.txt -o output.txt mapping.json -m mapping.json

About

A multi-threaded Python CLI tool to created a controlled vocabulary

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages