Open dilshans2k opened 5 months ago
Hello @dilshans2k,
Thank you for the detailed report; We are not right now doing any development on the annotatorplus project, but we will make sure to fix it, in future iterations.
A temporary fix, is to remove special characters from the submitted text, using a regex like this [^\w\s]
.
As reference here are related issues https://github.com/ontoportal-lirmm/annotators/issues/49, https://github.com/ontoportal-lirmm/bioportal_web_ui/issues/558, and the temporary fix that we did at AgroPortal to remove special characters from the submitted text https://github.com/ontoportal-lirmm/bioportal_web_ui/pull/561
FYI @jonquet, @Bilelkihal
Thanks for the prompt reply. Yes, the solution provided is one way to get it working.
I was wondering, is the annotatorplus repo open source? Also if the database or the kg is publicly available?
Hello,
Yes, the annotatorplus repo is open-source, feel free to propose any contribution here https://github.com/ontoportal-lirmm/annotators.
The KG is not publicly available, as Biooportal doesn't offer a SPARQL endpoint, but you can use the API https://data.bioontology.org/ to access all the public ontologies and terms.
Request:
Issue with
%
If the input text contains
%
(note the whitespace), API gives 500 internal server error.Sample input:
text=Parkinson Disease % Pneumonia
Server response:
Issue with
;
If the text prefix contains
;
, API gives 200OK but with errorSample input:
text: ;Disease
Sample output:
;
, only entities before;
are annotated. Sample input1:text: PARKINSON DISEASE PARKINSON's DISEASE
Sample output1:
Sample input2:
text = PARKINSON DISEASE; PARKINSON's DISEASE
Sample output2:
As it is visible, Only the first instance of
PARKINSON DISEASE
was annotated.