Hello Tino Didriksen
Thanks for the answer (also to the others who wrote back).
Example case:
lets say i have this sentence (example.txt) in cg format:
"<Er>"
"Er" er PPER
"<zeigte>"
"zeigte" zeigen VVFIN NEU
"<seine>"
"seine" sein PPOSAT
"<beliebte>"
"beliebte" beliebt ADJA POS
"<Heiterkeit>"
"Heiterkeit" Heiterkeit NN POS
"<.>"
"." . $.
and I have a (simplified) cg-file polartmarker.cgf:
SECTION
DELIMITERS = "<.>" "<!>" "<?>" "<\;>" "<:>" "<-->" "<¶>"; # define
sentence boundary
#Lemma-Sets
LIST positive_lemma = besiegen beliebt Heiterkeit;
LIST negative_lemma = fehlschlagen rückläufig;
LIST neutrale_lemma = zeigen verhalten kühl;
ADD (POS) (*) (0 positive_lemma);
ADD (NEG) (*) (0 negative_lemma);
ADD (NEU) (*) (0 neutrale_lemma);
then i add polarities (match by lemma), so i get:
~$ cat example.txt | vislcg3 -g polartmarker.cgf
"<Er>"
"Er" er PPER
"<zeigte>"
"zeigte" zeigen VVFIN @NEU
"<seine>"
"seine" sein PPOSAT
"<beliebte>"
"beliebte" beliebt ADJA @POS
"<Heiterkeit>"
"Heiterkeit" Heiterkeit NN @POS
"<.>"
"." . $.
If I wanted now to pipe this into the next vislcg3 process (which is a
kind of "polarity-chunker"), rules which should add further @-Tags
won't be applied:
~$ cat example.txt | vislcg3 -g polartmarker.cgf | vislcg3 -g
polaritychunker.cgf
Expected output:
"<Er>"
"Er" er PPER
"<zeigte>"
"zeigte" zeigen VVFIN @NEU
"<seine>"
"seine" sein PPOSAT
"<beliebte>"
"beliebte" beliebt ADJA @POS @>POS-CHUNK-PART
"<Heiterkeit>"
"Heiterkeit" Heiterkeit NN @POS @POS-CHUNK-HEAD
"<.>"
"." . $.
but the @>POS-CHUNK-PART and @POS-CHUNK-HEAD are not appended
(although they would if i did not use the polartmarker.cgf before).
So I see now why this happens and I know that I could use a specifical
prefix for each chained vislcg3-process, but I tried it without any
prefix (just added "POS" and "NEU" not "@POS" and "@NEU") and this
worked well too. For this very simple case of just lemma-based tagging
(I just need those addional tags in the readings for following
processes) I wonder if you would say that adding tags without prefixes
isn't the way to go or what are the general consequences when using
Tags without prefixes.
I hope this clarifies it a little bit.
regards
Michi