NEREvaluator Example | Teradata Vantage - NEREvaluator Example - Teradata Vantage

Machine Learning Engine Analytic Function Reference

Product
Teradata Vantage
Release Number
9.02
9.01
2.0
1.3
Published
February 2022
Language
English (United States)
Last Update
2022-02-10
dita:mapPath
rnn1580259159235.ditamap
dita:ditavalPath
ybt1582220416951.ditaval
dita:id
B700-4003
lifecycle
previous
Product Category
Teradata Vantageā„¢

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

SQL Call

SELECT * FROM NEREvaluator (
  ON ner_sports_test2 PARTITION BY 1
  USING
  TextColumn ('content')
  ModelFile ('ner_model.bin')
) AS dt;

Output

 type_ner precision_ner recall f1_measure 
 -------- ------------- ------ ---------- 
 LOC                  1 0.4444     0.6154
 ORG                  0      0         -1
 PER             0.7222 0.8125     0.7647
 -AVG-           0.7778 0.4884        0.6

Download a zip file of all examples and a SQL script file that creates their input tables.