more README

This commit is contained in:
2019-02-20 08:47:04 -05:00
parent 3dd4cf3b79
commit a2630b1fbe
3 changed files with 28 additions and 15 deletions

View File

@@ -4,6 +4,31 @@ Transcript Processing! `tpro` takes JSON-formatted transcripts produced by
various speech-to-text services and converts them to various standardized various speech-to-text services and converts them to various standardized
formats. formats.
# Installation and Usage
## Non-pip Requirement: Stanford NER JAR
- download and unzip [this](https://nlp.stanford.edu/software/stanford-ner-2018-10-16.zip)
- put these files in in /usr/local/bin/:
- stanford-ner.jar
- classifiers/english.all.3class.distsim.crf.ser.gz
- you might have to [update Java](https://askubuntu.com/questions/508546/howto-upgrade-java-on-ubuntu-14-04-lts) on Linux
## Pip
$ pip install tpro
## Usage
$ tpro --help
Usage: tpro [OPTIONS] JSON_PATH_OR_DATA [amazon|gentle|speechmatics]
[universal_transcript|viral_overlay]
Options:
-s, --save TEXT save to file
--help Show this message and exit.
# STT Services # STT Services
- [Speechmatics](https://www.speechmatics.com/) - [Speechmatics](https://www.speechmatics.com/)
@@ -26,15 +51,3 @@ formats.
- Word (`.doc`, `.docx`) - Word (`.doc`, `.docx`)
- text files - text files
- SRT (subtitles) - SRT (subtitles)
# Installation
pip install tpro
## Non-pip Requirement: Stanford NER JAR
- download and unzip [this](https://nlp.stanford.edu/software/stanford-ner-2018-10-16.zip)
- put these files in in /usr/local/bin/:
- stanford-ner.jar
- classifiers/english.all.3class.distsim.crf.ser.gz
- on Ubuntu you might have to [update Java](https://askubuntu.com/questions/508546/howto-upgrade-java-on-ubuntu-14-04-lts)

View File

@@ -6,7 +6,7 @@ with open('README.md') as file:
setup( setup(
name="tpro", name="tpro",
version="0.01", version="0.02",
url='https://github.com/zevaverbach/tpro', url='https://github.com/zevaverbach/tpro',
install_requires=[ install_requires=[
'Click', 'Click',

View File

@@ -11,7 +11,7 @@ output_choices = [k for k, v in
if callable(v)] if callable(v)]
@click.command() @click.command()
@click.option('-s', '--save', type=str, help='save to file') @click.option('-s', '--save', type=str, help='save to JSON file')
@click.argument('json_path_or_data', type=str) @click.argument('json_path_or_data', type=str)
@click.argument('input_format', type=click.Choice(services.keys())) @click.argument('input_format', type=click.Choice(services.keys()))
@click.argument('output_format', type=click.Choice(output_choices)) @click.argument('output_format', type=click.Choice(output_choices))