Closed Sombra-do-Baiano closed 7 months ago
I'm not sure if I'm doing something wrong but I have a code that looks like this, I'm sorry that some variables are in portuguese:
def corrigir_texto(entrada): corretor = ltpy.LanguageToolPublicAPI('pt-BR') print(corretor.__dict__) print(dir(corretor)) possiveis_correcoes = ltpy.check(entrada) ltpy.close() return possiveis_correcoes
and once I use the function it gives the error:
AttributeError: module 'language_tool_python' has no attribute 'check'
I've also tried using: corretor = ltpy.LanguageTool('pt-BR'). But in the end it showed the same error
corretor = ltpy.LanguageTool('pt-BR')
Hi, I think you want to do corretor.check not ltpy.check here.
corretor.check
ltpy.check
I'm not sure if I'm doing something wrong but I have a code that looks like this, I'm sorry that some variables are in portuguese:
and once I use the function it gives the error:
AttributeError: module 'language_tool_python' has no attribute 'check'
I've also tried using:
corretor = ltpy.LanguageTool('pt-BR')
. But in the end it showed the same error