Skip to content

Commit

Permalink
google converter test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
qmac committed Feb 14, 2018
1 parent 3ab4b86 commit eea005c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pliers/converters/google.py
Expand Up @@ -26,8 +26,7 @@ class GoogleSpeechAPIConverter(GoogleAPITransformer, AudioToTextConverter):

api_name = 'speech'
resource = 'speech'
_log_attributes = ('language_code', 'profanity_filter', 'speech_contexts',
'handle_annotations')
_log_attributes = ('language_code', 'profanity_filter', 'speech_contexts')

def __init__(self, language_code='en-US', profanity_filter=False,
speech_contexts=None, *args, **kwargs):
Expand Down Expand Up @@ -111,10 +110,11 @@ class GoogleVisionAPITextConverter(GoogleVisionAPITransformer,
request_type = 'TEXT_DETECTION'
response_object = 'textAnnotations'
VERSION = '1.0'
_log_attributes = ('handle_annotations', 'api_version')

def __init__(self, handle_annotations='first', *args, **kwargs):
super(GoogleVisionAPITextConverter, self).__init__(*args, **kwargs)
self.handle_annotations = handle_annotations
super(GoogleVisionAPITextConverter, self).__init__(*args, **kwargs)

def _convert(self, stims):
request = self._build_request(stims)
Expand Down

0 comments on commit eea005c

Please sign in to comment.