This function evaluates the efficacy of the model file ner_model.bin, created by the NERTrainer function in terms of precision, recall, and f1_measure.
Input
- ner_model.bin, output by NERTrainer Example
SQL Call
SELECT * FROM NEREvaluator ( ON ner_sports_test2 PARTITION BY 1 USING TextColumn ('content') ModelFile ('ner_model.bin') ) AS dt;
Output
type | precision | recall | f1_measure |
---|---|---|---|
LOC | 1.0000 | 0.4444 | 0.6154 |
ORG | 0.0000 | 0.0000 | -1.0000 |
PER | 0.7222 | 0.8125 | 0.7647 |
-AVG- | 0.7778 | 0.4884 | 0.6000 |