Convert transcriptions from rev into FAVE format.
Project description
rev-reader
Parse Json of transcriptions from rev into FAVE-align format and write to CSV.
TOC
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 $LOWERCASE_NAME_OF_INPUT_JSON + $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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file rev-reader-0.0.3.tar.gz
.
File metadata
- Download URL: rev-reader-0.0.3.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8df2b24d896538c971a5700ab4cab2437f6028968f124695f7ed0b4b1f7af419 |
|
MD5 | 04110f5ecbb249a6c971e5c4e49f1c90 |
|
BLAKE2b-256 | 1de5a0fa7b62170bdfc201ca315f1deaec5c7d20b70232cb78d4258773d5a73c |
File details
Details for the file rev_reader-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: rev_reader-0.0.3-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf0602dfc0bba1503dd58c63a9f5b22b95e96dd2e56cd86a52df07111475edd1 |
|
MD5 | c813e18bdc9104af06ff7f47bbf9fe53 |
|
BLAKE2b-256 | 6845c80c9beda45ce2218e45a08652841ce3708a2f6062d0a4c247ea2edd61f9 |