49 p.
set(
"NAME",
"example");
51 p.
set(
"DURATION", 2.76);
59 cout <<
"Part of speech for p is " << p.
S(
"POS") << endl;
60 cout <<
"Duration for p is " << p.
F(
"DURATION") << endl;
61 cout <<
"Stress value for p is " << p.
I(
"STRESS") << endl;
68 cout <<
"Part of speech for p is " 69 << p.
S(
"POS") << endl;
70 cout <<
"Syntactic Category for p is " 71 << p.
S(
"CAT",
"Noun") << endl;
80 p.
set(
"CONTINUANT",
"-");
81 p.
set(
"SONORANT",
"-");
84 p.
set(
"PLACE OF ARTICULATION", f);
86 p.
A(
"PLACE OF ARTICULATION").
set(
"CORONAL",
"+");
87 p.
A(
"PLACE OF ARTICULATION").
set(
"ANTERIOR",
"+");
97 f2.
set(
"CORONAL",
"+");
98 f2.
set(
"ANTERIOR",
"+");
100 p.
set(
"PLACE OF ARTICULATION", f2);
109 cout <<
"Anterior value is: " << p.
A(
"PLACE OF ARTICULATION").
S(
"ANTERIOR");
110 cout <<
"Coronal value is: " << p.
A(
"PLACE OF ARTICULATION").
S(
"CORONAL");
114 cout <<
"Anterior value is: " << p.
S(
"PLACE OF ARTICULATION.ANTERIOR");
115 cout <<
"Coronal value is: " << p.
S(
"PLACE OF ARTICULATION.CORONAL");
121 p.
set(
"PLACE OF ARTICULATION.CORONAL",
"+");
122 p.
set(
"PLACE OF ARTICULATION.ANTERIOR",
"+");
131 cout <<
"This is true: " << p.
f_present(
"PLACE OF ARTICULATION");
132 cout <<
"This is false: " << p.
f_present(
"MANNER");
138 p.
f_remove(
"PLACE OF ARTICULATION");
151 a->
set(
"TYPE",
"consonant");
156 a->
set(
"TYPE",
"vowel");
161 a->
set(
"TYPE",
"consonant");
168 a->
set(
"TYPE",
"consonant");
173 a->
set(
"NAME",
"ei");
174 a->
set(
"TYPE",
"vowel");
183 a->
set(
"TYPE",
"consonant");
188 a->
set(
"TYPE",
"vowel");
198 for (s = phones.
head(); s != 0; s = s->
next())
199 cout << s->
S(
"NAME") << endl;
204 for (s = phones.
tail(); s != 0; s = s->
prev())
205 cout << s->
S(
"NAME") << endl;
210 for (s = phones.
head(); s; s = s->
next())
211 cout << s->
S(
"NAME") << endl;
227 np->
set(
"CAT",
"NP");
230 n->
set(
"CAT",
"PRO");
233 n->
set(
"NAME",
"John");
236 vp->
set(
"CAT",
"VP");
239 n->
set(
"CAT",
"VERB");
241 n->
set(
"NAME",
"loves");
244 np->
set(
"CAT",
"NP");
247 n->
set(
"CAT",
"DET");
249 n->
set(
"NAME",
"the");
252 n->
set(
"CAT",
"NOUN");
254 n->
set(
"NAME",
"woman");
268 else if (n->
next() != 0)
300 cout << s->
S(
"NAME") << endl;
355 cout << *utt.
relation(
"Syntax") <<
"\n";
359 cout << *utt.
relation(
"Word") <<
"\n";
EST_Item * first_leaf(const EST_Item *n)
return the first leaf (terminal node) which is dominated by n. Note that this is different from daugh...
EST_Item * append_daughter(EST_Item *n, EST_Item *p=0)
int I(const EST_String &name) const
EST_Relation * create_relation(const EST_String &relname)
create a new relation called n.
void set(const EST_String &name, ssize_t ival)
void set(const EST_String &name, int ival)
EST_Item * prepend(EST_Item *si)
const EST_String S(const EST_String &path) const
float F(const EST_String &name) const
EST_Features & A(const EST_String &name) const
EST_Item * last_leaf(const EST_Item *n)
const EST_String S(const EST_String &name) const
EST_Relation * relation(const char *name, int err_on_not_found=1) const
get relation by name
EST_Item * append(EST_Item *si)
EST_Item * next_leaf(const EST_Item *n)
void f_remove(const EST_String &name)
EST_Item * parent(const EST_Item *n)
return parent of n
EST_Item * daughter1(const EST_Item *n)
return first daughter of n
int f_present(const EST_String &name) const