rev-reader 0.0.3

Creator: bradpython12

Last updated:

Add to Cart

Description:

revreader 0.0.3

rev-reader
Parse Json of transcriptions from rev into FAVE-align format and write to CSV.
TOC

Install
How to use
Notes

Install
Pip install as outlined above.
How to use
Built in Python 3.6.5, should work with Python 2 as well.


Run from the command line, option I
python -m rev_reader.rev_reader $INPUT_FOLDER $ADDITIONAL_OFFSET
where


$INPUT_FOLDER is a path to a directory containing some JSON files of rev annotations. The output CSVs will be written to the same directory. This is a required argument.


$ADDITIONAL_OFFSET is a number that will be added to / subtracted from the timestamps before the data is output as CSV. This is an optional argument.


For example, the command below will convert all the JSON files in the folder annotated_files and subtract 0.01 from each time stamp. It will write CSV files to folder annotated_files.
python -m rev_reader.rev_reader /home/patrick/Documents/annotated_files -.01


Run from the command line, option II
You can run the rev_reader.py file directly by executing:
python $PATH_TO_REV_READER.PY $INPUT_FOLDER $ADDITIONAL_OFFSET
For example, the command below will convert all the JSON files in the folder annotated_files . It will write CSV files to folder annotated_files.
e.g. python rev_reader.py /home/patrick/Documents/annotated_files -.01


Import into Python
You can access the functions directly from Python by doing
import rev_reader
Refer to the Github docs for info.


Notes


The naming scheme for CSVs is LOWERCASENAMEOFINPUTJSON+TIMESTAMP + "_faved.csv"
For example, for input file BE.TO.017.json, the CSV file will be be.to.017_20181124-1819_faved.csv


Dependencies: pandas

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.