Skip to content

Commit

Permalink
Fix 'Redefining built-in 'input'' issue in functions\reconhecimento_d…
Browse files Browse the repository at this point in the history
…e_entidades.py on line 8 #9
  • Loading branch information
mateusfg7 committed Dec 28, 2019
1 parent ab00d02 commit 5ad2422
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions functions/reconhecimento_de_entidades.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ def reconhecimento_de_entidades(client, arquivo):

if arquivo:

texto = traduzir('en', arquivo)
input = {"document": texto}
textoTraduzido = traduzir('en', arquivo)
textoBase = {"document": textoTraduzido}

algoritimo = client.algo('StanfordNLP/NamedEntityRecognition/0.2.0')
resultado = algoritimo.pipe(input).result
resultado = algoritimo.pipe(textoBase).result

numeroDeEntidadesEncontradas = len(resultado['sentences'])
wordlist = resultado['sentences'][numeroDeEntidadesEncontradas - 1]['detectedEntities']
Expand Down

0 comments on commit 5ad2422

Please sign in to comment.