This is happening with expertai-nlapi-2.1.3
I have an export from a product (Roam Research) that is return results in a psedu-markdown template. I've extracted it out and then run the following code to clean it up a little bit:
eaiString = eaiString + s.get('string').replace('\n', ' ').replace('\r', ' ').replace('{',' ').replace('}',' ') + "\n"
I then called the SDK with the following code
document = client.specific_resource_analysis(
body={"document": {"text":text}},
params={'language':'en', 'resource': 'relevants'})
The text is about 6500 lines and 658k characters.
I had submitted a much smaller excerpt earlier with out any problems so I don't think its an authentication issue.
Best answer by luisaherrmann
View original