7d1b37565d53e767e0ef280a5e058eefa4a501e8,pliers/converters/api.py,IBMSpeechAPIConverter,_convert,#IBMSpeechAPIConverter#,100
Before Change
if result["final"] is True:
timestamps = result["alternatives"][0]["timestamps"]
for entry in timestamps:
elements.append(TextStim(text=entry[0], onset=entry[1],
duration=entry[2]-entry[1]))
return ComplexTextStim(elements=elements)
def _query_api(self, clip):
// Adapted from SpeechRecognition source code, modified to get text
After Change
for result in results:
if result["final"] is True:
timestamps = result["alternatives"][0]["timestamps"]
if self.resolution is "words":
for entry in timestamps:
text = entry[0]
start = entry[1]
end = entry[2]
elements.append(TextStim(text=text, onset=start,
duration=end-start))
elif self.resolution is "phrases":
text = result["alternatives"][0]["transcript"]
start = timestamps[0][1]
end = timestamps[-1][2]
elements.append(TextStim(text=text, onset=start,
duration=end-start))
return ComplexTextStim(elements=elements)
def _query_api(self, clip):
// Adapted from SpeechRecognition source code, modified to get text
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances Project Name: tyarkoni/pliers
Commit Name: 7d1b37565d53e767e0ef280a5e058eefa4a501e8
Time: 2017-03-04
Author: quinten.mcnamara@gmail.com
File Name: pliers/converters/api.py
Class Name: IBMSpeechAPIConverter
Method Name: _convert
Project Name: tyarkoni/pliers
Commit Name: 7d1b37565d53e767e0ef280a5e058eefa4a501e8
Time: 2017-03-04
Author: quinten.mcnamara@gmail.com
File Name: pliers/converters/api.py
Class Name: IBMSpeechAPIConverter
Method Name: _convert
Project Name: xinntao/BasicSR
Commit Name: 6917d8a3dbf6617f02b1247fd50fbc20d3cb6fd4
Time: 2018-06-10
Author: wxt1994@126.com
File Name: codes/data/util.py
Class Name:
Method Name: get_image_paths
Project Name: tensorflow/hub
Commit Name: 4e10c7b32c6533148e75fe85755e293feab29818
Time: 2020-07-07
Author: no-reply@google.com
File Name: tfhub_dev/tools/validator.py
Class Name: ModelParsingPolicy
Method Name: __init__