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:
24
converters/__init__.py
Normal file
24
converters/__init__.py
Normal 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,
|
||||
}
|
||||
Reference in New Issue
Block a user