Fix pylint
This commit is contained in:
parent
bf7cc1df54
commit
2b7ab99478
@ -16,6 +16,9 @@
|
|||||||
# add these directories to sys.path here. If the directory is relative to the
|
# add these directories to sys.path here. If the directory is relative to the
|
||||||
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
# pylint: skip-file
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
@ -119,6 +119,7 @@ class Model(object):
|
|||||||
raise RuntimeError("CreateStream failed with error code {}".format(status))
|
raise RuntimeError("CreateStream failed with error code {}".format(status))
|
||||||
return ctx
|
return ctx
|
||||||
|
|
||||||
|
# pylint: disable=no-self-use
|
||||||
def feedAudioContent(self, *args, **kwargs):
|
def feedAudioContent(self, *args, **kwargs):
|
||||||
"""
|
"""
|
||||||
Feed audio samples to an ongoing streaming inference.
|
Feed audio samples to an ongoing streaming inference.
|
||||||
@ -134,6 +135,7 @@ class Model(object):
|
|||||||
"""
|
"""
|
||||||
deepspeech.impl.FeedAudioContent(*args, **kwargs)
|
deepspeech.impl.FeedAudioContent(*args, **kwargs)
|
||||||
|
|
||||||
|
# pylint: disable=no-self-use
|
||||||
def intermediateDecode(self, *args, **kwargs):
|
def intermediateDecode(self, *args, **kwargs):
|
||||||
"""
|
"""
|
||||||
Compute the intermediate decoding of an ongoing streaming inference.
|
Compute the intermediate decoding of an ongoing streaming inference.
|
||||||
@ -149,6 +151,7 @@ class Model(object):
|
|||||||
"""
|
"""
|
||||||
return deepspeech.impl.IntermediateDecode(*args, **kwargs)
|
return deepspeech.impl.IntermediateDecode(*args, **kwargs)
|
||||||
|
|
||||||
|
# pylint: disable=no-self-use
|
||||||
def finishStream(self, *args, **kwargs):
|
def finishStream(self, *args, **kwargs):
|
||||||
"""
|
"""
|
||||||
Signal the end of an audio signal to an ongoing streaming
|
Signal the end of an audio signal to an ongoing streaming
|
||||||
@ -162,6 +165,7 @@ class Model(object):
|
|||||||
"""
|
"""
|
||||||
return deepspeech.impl.FinishStream(*args, **kwargs)
|
return deepspeech.impl.FinishStream(*args, **kwargs)
|
||||||
|
|
||||||
|
# pylint: disable=no-self-use
|
||||||
def finishStreamWithMetadata(self, *args, **kwargs):
|
def finishStreamWithMetadata(self, *args, **kwargs):
|
||||||
"""
|
"""
|
||||||
Signal the end of an audio signal to an ongoing streaming
|
Signal the end of an audio signal to an ongoing streaming
|
||||||
@ -186,18 +190,21 @@ class MetadataItem(object):
|
|||||||
"""
|
"""
|
||||||
The character generated for transcription
|
The character generated for transcription
|
||||||
"""
|
"""
|
||||||
|
# pylint: disable=unnecessary-pass
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def timestep(self):
|
def timestep(self):
|
||||||
"""
|
"""
|
||||||
Position of the character in units of 20ms
|
Position of the character in units of 20ms
|
||||||
"""
|
"""
|
||||||
|
# pylint: disable=unnecessary-pass
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def start_time(self):
|
def start_time(self):
|
||||||
"""
|
"""
|
||||||
Position of the character in seconds
|
Position of the character in seconds
|
||||||
"""
|
"""
|
||||||
|
# pylint: disable=unnecessary-pass
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
@ -212,6 +219,7 @@ class Metadata(object):
|
|||||||
:return: A list of :func:`MetadataItem` elements
|
:return: A list of :func:`MetadataItem` elements
|
||||||
:type: list
|
:type: list
|
||||||
"""
|
"""
|
||||||
|
# pylint: disable=unnecessary-pass
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def num_items(self):
|
def num_items(self):
|
||||||
@ -221,6 +229,7 @@ class Metadata(object):
|
|||||||
:return: Size of the list of items
|
:return: Size of the list of items
|
||||||
:type: int
|
:type: int
|
||||||
"""
|
"""
|
||||||
|
# pylint: disable=unnecessary-pass
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def confidence(self):
|
def confidence(self):
|
||||||
@ -229,4 +238,5 @@ class Metadata(object):
|
|||||||
sum of the acoustic model logit values for each timestep/character that
|
sum of the acoustic model logit values for each timestep/character that
|
||||||
contributed to the creation of this transcription.
|
contributed to the creation of this transcription.
|
||||||
"""
|
"""
|
||||||
|
# pylint: disable=unnecessary-pass
|
||||||
pass
|
pass
|
||||||
|
Loading…
Reference in New Issue
Block a user