Relation Confidence
The relation confidence feature includes a confidence value for each relation predicted.
Example NLP API results:
Specifically the following is a snippet showing an example of a measurement relation’s confidence:
Changed
Python API
All the relations now have a .confidence attribute which is a float (e.g. confidence).
Not all relation types currently support confidence scores, so the .confidence attribute may be None. See NLP API documentation on which relations will include confidence scores.
Example usage:
Output of above code.
Schema changes
Each relation table now contains a confidence column:
experiencerrelation.confidencefollowuprelation.confidencemeasurementrelation.confidenceimagelinkrelation.confidencequalifierrelation.confidencemedicationrelation.confidencetemporalityrelation.confidencereportedeventrelation.confidenceanatomicsiterelation.confidence
For example, here is the new schema for measurementrelation (in PostgreSQL):
The following is an example of what you can expect to see in that table:

