made google work again after change in formatting of saved transcript. added speaker_id support to base class and Google

This commit is contained in:
2019-03-07 22:55:37 -05:00
parent ed2ece3dfb
commit 3fc6dacfde
9 changed files with 75 additions and 62 deletions

View File

@@ -35,6 +35,10 @@ class AmazonConverter(TranscriptConverter):
word_word = 'I'
return word_word
@staticmethod
def get_speaker_id(word_object):
return None
def convert_words(self, word_objects, words, tagged_words=None):
converted_words = []
@@ -74,6 +78,7 @@ class AmazonConverter(TranscriptConverter):
tagged_words),
'punc_after': punc_after,
'punc_before': punc_before,
'speaker_id': word_obj.speaker_id,
})
punc_after = False