From 3367f4b8c126bfc48d7bf67c851271a31c765c7d Mon Sep 17 00:00:00 2001 From: David Hamann Date: Thu, 14 Sep 2017 17:03:32 +0200 Subject: [PATCH] added corenlp-dep-tree to SpeechHypothesis and pos-tag to Word --- proto/stable/rst/dialog/SpeechHypothesis.proto | 70 ++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) diff --git a/proto/stable/rst/dialog/SpeechHypothesis.proto b/proto/stable/rst/dialog/SpeechHypothesis.proto index 087b6ae..a5fa93d 100644 --- a/proto/stable/rst/dialog/SpeechHypothesis.proto +++ b/proto/stable/rst/dialog/SpeechHypothesis.proto @@ -32,6 +32,70 @@ message SpeechHypothesis { */ optional timing.Interval timestamps = 2; + enum PosTag { + ADJA = 1; + ADJD = 2; + ADV = 3; + APPR = 4; + APPRART = 5; + APPO = 6; + APZR = 7; + ART = 8; + CARD = 9; + FM = 10; + ITJ = 11; + ORD = 12; + KOUI = 13; + KOUS = 14; + KON = 15; + KOKOM = 16; + NN = 17; + NE = 18; + PDS = 19; + PDAT = 20; + PIS = 21; + PIAT = 22; + PIDAT = 23; + PPER = 24; + PPOSS = 25; + PPOSAT = 26; + PRELS = 27; + PRELAT = 28; + PRF = 29; + PWS = 30; + PWAT = 31; + PWAV = 32; + PAV = 33; + PTKZU = 34; + PTKNEG = 35; + PTKVZ = 36; + PTKANT = 37; + PTKA = 38; + SGML = 39; + SPELL = 40; + TRUNC = 41; + VVFIN = 42; + VVIMP = 43; + VVINF = 44; + VVIZU = 45; + VVPP = 46; + VAFIN = 47; + VAIMP = 48; + VAINF = 49; + VAPP = 50; + VMFIN = 51; + VMINF = 52; + VMPP = 53; + XY = 54; + KOMM = 55; + END = 56; + IPNCT = 57; + } + + /** + * PartOfSpeech-tag for this word. + */ + optional PosTag pos_tag = 3; } /** @@ -57,4 +121,10 @@ message SpeechHypothesis { */ optional string grammar_tree = 4; + /** + * The dependency tree from corenlp of this speech hypothesis. + */ + optional string corenlp_dep_tree = 5; + + } -- 2.7.4