[developers] PET XML input and [incr tsdb()]
Rebecca Dridan
bec.dridan at gmail.com
Wed Feb 14 11:40:26 CET 2007
I tried adding "\n\n" at the end of the i-input field, but apart from
the side effect that I can no longer browse the input items (presumably
because it can't show more than one line) it didn't have any effect.
What I have found is that if I cancel a Process All run (with Ctrl-G
Ctrl-G) and then run it again, the run finishes but gives no readings
(whether the newlines are in the input field or not). I thought perhaps
PET needs to be told EOF? But the only way I could think of to test this
was:
echo -ne '<?xml version="1.0" encoding="utf-8" ?> <pet-input-chart> <!--
One runs --> <w id="W1" cstart="0" cend="3"> <surface>One</surface> </w>
<w id="W2" cstart="4" cend="8"> <surface>runs</surface> </w>
</pet-input-chart>\n\n' | /usr/local/bin/cheap -tok=xml_counts
-packing=7 -verbose=4 -default-les /home/delphin/erg/english.grm
and that works just fine (gives 5 readings). Does anyone know some way
of forcing an EOF in the input field? Any other ideas? I assume no one
else has tried to do this before. Maybe it's just not possible?
Rebecca
Francis Bond wrote:
> G'day,
>
> On 2/12/07, Rebecca Dridan <bec.dridan at gmail.com> wrote:
>
>> Hi Stephan,
>>
>>
>> I've attached the debug output. It's not saying much to me, so I hope
>> you can help. At the point I copied that, [incr tsdb()] was still saying
>> 2% processed and doing nothing.
>
>
> As I recall, and the wiki confirms, xml input mode seemd to require
> two empty lines at the end of the input file appear necessary, at
> least when piping data into PET. I think it may be the case that one
> PIC per line doesn't actually work (at least I recall having various
> problems).
>
> I suspect your local experts (Ulrich and Bernd) probably know most
> about this, although not necessarily about interaction with itsdb.
>
>
More information about the developers
mailing list