Четверг, 23 апреля 2015, 11:11 +01:00 от "Marco A.G.Pinto" <>:
>Hello!
>
>I have added some basic posttag concordance rules (plural/singular):
> as > a
> a > as
> os > o
> o > os
>
>I had to create four rules for each.
>
>To have just one rule for each, I would need to know how to use:
>regexp="yes"
>with postags.
>
>Can someone tell me how to do it?
>
>Thanks!
>
>Kind regards,
> >Marco A.G.Pinto
> ---------------------
>
>
The expression:
regexp="yes"
is used when we use regexp expression in token.
We use: postag_regexp="yes"
then we use regexp expression in postag.
For example
<token postag_regexp="yes" postag="DP3(.*)S"></token>
means word with the following postags:
DP3FSS
DP3MPS
DP3MSS
https://github.com/languagetool-org/languagetool/blob/master/languagetool-language-modules/pt/src/main/resources/org/languagetool/resource/pt/portuguese_tags.txt
--
Yakov Reztsov
------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Languagetool-devel mailing list
Languagetool-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-devel