commit and (s)
[email protected] (Robert McArthur)
| Newsgroups | perl.recdescent |
|---|---|
| Organization | DSTC P/L; Issaries P/L |
| Message-ID | <[email protected]> |
Sorry if this is obvious, but I'm having problems with a concept. I
think commit will do what I want but I don't know how to use it in the
situation...
Situation: parsing straight, but dirty, text : email msgs :-(
(simple)text = set of paragraphs, paras = set of sentences etc.
If I have a rule (simplified for this example) like:
para: sentence(s) EOF
sentence: word(s) EOS(?) EOSjunk(?)
I'd like to commit once I've found each word (there's some reasoning
behind this if it's not obvious).
If I do
para: sentence(s) EOF
sentence: word(s) <commit> EOS(?) EOSjunk(?)
then I still get back-tracking to the first word of
the first sentence. Same if I
para: sentence(s) <commit> EOF
sentence: word(s) EOS(?) EOSjunk(?)
What I'd like is to commit after each sentence (or after each
word). How can I do this if I use the (s) format? Is there
something silly in what I'm doing and obviously better done
another way?
Thanks for any help,
Robert McArthur
--
Robert McArthur CRC for Enterprise Distributed System Technology
Ph. +61 7 3365 4310 Brisbane, Australia
Fax +61 7 3365 4311
[email protected]