brought over changes from when transcript_processing was nested inside transcribely's back_end package. started refactoring converters into OOP

This commit is contained in:
2019-02-06 20:57:21 -05:00
parent c9c4cbe550
commit 84fe4d2fd4
19 changed files with 277 additions and 135802 deletions

24
converters/__init__.py Normal file
View File

@@ -0,0 +1,24 @@
"""
fields for converted transcript:
start
end
word
confidence
index
always_capitalized
punc_before
punc_after
"""
from transcript_processing.converters.amazon import amazon_converter
from transcript_processing.converters.speechmatics import speechmatics_aligned_text_converter, speechmatics_converter
converters = {
'speechmatics': speechmatics_converter,
'speechmatics_align': speechmatics_aligned_text_converter,
'amazon': amazon_converter,
}