W dniu 2014-01-28 09:59, Jaume Ortolà i Font pisze: > 2014-01-28 Kumara Bhikkhu <kumara.bhik...@gmail.com > <mailto:kumara.bhik...@gmail.com>> > > Can a token be a mixture of postags and words? Example: Can a token > match send_end or of|into? If not, how do I indicate this? > > > Yes, you can write this: > > <or> > <token postag="SENT_END" /> > <token regexp="yes">of|into</token> > <or> > > It's equivalent to using two similar rules at the same time, one with > "sent_end" and the other one with "of|into". > > This is a recent addition to the syntax. I am not sure if the > backreferences work always properly with the or-statement.
As far as I can see in the code, if you don't have <match> using references inside the OR group, it should work just fine. But is there a reason not to include <or> in the disambiguation rules? Could you do it as well? Regards, Marcin ------------------------------------------------------------------------------ Managing the Performance of Cloud-Based Applications Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. Read the Whitepaper. http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk _______________________________________________ Languagetool-devel mailing list Languagetool-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/languagetool-devel