Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encountered errors trying to annotate more than 30 notes #13

Open
yy6linda opened this issue Oct 22, 2021 · 2 comments
Open

Encountered errors trying to annotate more than 30 notes #13

yy6linda opened this issue Oct 22, 2021 · 2 comments
Assignees
Labels
Bug Something isn't working

Comments

@yy6linda
Copy link
Member

I got this error when running nlpsandboxclient.client.annotate_note on i2b2 test dataset(514 notes) using the notebook.
However, no errors when running the same code on the example data (5 notes only)
Do we have an upper limit set for how many notes annotators can process?

Screen Shot 2021-10-22 at 12 21 56 PM

@tschaffter
Copy link
Member

Do we have an upper limit set for how many notes annotators can process?

  • I'm assuming your are using one of the spark tool, correct? Which tool exactly?
  • I don't know how the developers built their model but I think that the limit is unlikely.

A 500 error indicates that the API service (here the tool) experienced an unexpected issue. One of the reasons I can think of is because the input sent to the tool triggers some error. Does the tool systematically fail on a specific note?

The Spark tools are implemented in Python, so you could go inside the container that run the tool (not nginx) and add debug prints. Alternatively, I recommend using a tool that is fully open source like neuroner.

@tschaffter tschaffter added the Bug Something isn't working label Oct 22, 2021
@yy6linda
Copy link
Member Author

I ran the example PHI-annotator using the notebook but I didn't encounter this error. I was able to run the example PHI-annotator on all notes in the test dataset(514 notes in total). This error shows up when running the sparknlp model. There might be a limitation for the number of notes to process in the sparknlp model.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants