TextMorph Example: POS('noun','verb'), SingleOutput('true') | Teradata Vantage - TextMorph Example: POS ('noun', 'verb'), SingleOutput ('true') - 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ā„¢

Input

SQL Call

SELECT * FROM TextMorph (
  ON words_input
  USING
  WordColumn ('word')
  SingleOutput ('true')
  POS ('noun', 'verb')
  Accumulate ('id', 'word')
) AS dt ORDER BY id;

Output

With SingleOutput ('true'), the words better and father appear in the output table only as nouns.

 id word       morph      pos  
 -- ---------- ---------- ---- 
  1 regression regression noun
  3 better     better     noun
  4 datum      datum      noun
  7 father     father     noun
  8 juniors    junior     noun
  9 doing      do         verb
 10 being      be         verb
 11 negating   negate     verb
 12 yearly     yearly     noun

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