Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
dizcology authored and Jon Wayne Parrott committed Dec 5, 2017
1 parent 09be04b commit 334ff74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions samples/snippets/detect/beta_snippets.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def detect_document(path):
block_symbols.extend(word.symbols)
word_text = ''
for symbol in word.symbols:
word_text = unicode(word_text) + unicode(symbol.text)
word_text = word_text + symbol.text
print(u'\tSymbol text: {} (confidence: {})'.format(
symbol.text, symbol.confidence))
print(u'Word text: {} (confidence: {})\n'.format(
Expand Down Expand Up @@ -94,7 +94,7 @@ def detect_document_uri(uri):
block_symbols.extend(word.symbols)
word_text = ''
for symbol in word.symbols:
word_text = unicode(word_text) + unicode(symbol.text)
word_text = word_text + symbol.text
print(u'\tSymbol text: {} (confidence: {})'.format(
symbol.text, symbol.confidence))
print(u'Word text: {} (confidence: {})\n'.format(
Expand Down

0 comments on commit 334ff74

Please sign in to comment.