Re: Problem creating rule
Thank you my friend, I have committed the grammar.xml with the improvements. Kind regards, >Marco A.G.Pinto --- On 16/02/2016 20:01, Yakov Reztsov wrote: Hello Marco, Problem of this rule that word * "bonita" is not match to "<*token postag_regexp="yes" postag="AQ0CS0|PI0FS000|PI0MS000|NCMS000">*"* You can exchange postag "NCMS000" and "NCFS000" on second token like this: I think this rules may look like this: * ** **** ** ** **** **um** **** **postag="AQ0CS0|PI0FS000|PI0MS000|*NCFS000 *">** **postag="NCMS000">uma** ** ** ** Erro de concordância um/uma.** ** uma** ** Quero um bonita foto dela.** ** ** ** ** **** **** ** ** **** **uma** **** **postag="AQ0CS0|PI0FS000|PI0MS000|*NCMS000*">** **postag="NCFS000">a** ** ** ** Erro de concordância uma/um.** ** um** ** Quero uma bonito carro novo.** ** * Вторник, 16 февраля 2016, 14:15 UTC от "Marco A.G.Pinto": Hello! Only today I had the chance of dedicating some time to improve the complex rule: "um/uma + adj + noun" (male/female). But it is giving an error in TESTRULES PT. What am I doing wrong?:* **** **** ** ** **** **um** **** **** **uma** ** ** ** Erro de concordância um/uma.** ** uma** ** Quero um bonita foto dela.** ** ** ** ** **** **** ** ** **** **uma** **** **** **a** ** ** ** Erro de concordância uma/um.** ** um** ** Quero uma bonito carro novo.** ** * Thanks! Kind regards, >Marco A.G.Pinto --- -- -- Yakov Reztsov -- -- Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=272487151=/4140___ Languagetool-devel mailing list Languagetool-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/languagetool-devel
Re: Problem creating rule
Hello Marco, Problem of this rule that word "bonita" is not match to "< token postag_regexp="yes" postag="AQ0CS0|PI0FS000|PI0MS000|NCMS000"> " You can exchange postag "NCMS000" and " NCFS000" on second token like this: I think this rules may look like this: um uma Erro de concordância um/uma. uma Quero um bonita foto dela. uma a Erro de concordância uma/um. um Quero uma bonito carro novo. >Вторник, 16 февраля 2016, 14:15 UTC от "Marco A.G.Pinto" >: > >Hello! > >Only today I had the chance of dedicating some time to improve the complex rule: "um/uma + adj + noun" (male/female). > >But it is giving an error in TESTRULES PT. > >What am I doing wrong?: > > > > > > um > > > uma > > Erro de concordância um/uma. > uma > Quero um bonita foto dela. > > > > > > > > > uma > > > a > > Erro de concordância uma/um. > um > Quero uma bonito carro novo. > > >Thanks! > >Kind regards, > >Marco A.G.Pinto > --- > > >-- >-- >Site24x7 APM Insight: Get Deep Visibility into Application Performance >APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month >Monitor end-to-end web transactions and take corrective actions now >Troubleshoot faster and improve end-user experience. Signup Now! >http://pubads.g.doubleclick.net/gampad/clk?id=272487151=/4140 >___ >Languagetool-devel mailing list >Languagetool-devel@lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/languagetool-devel -- Yakov Reztsov -- Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=272487151=/4140___ Languagetool-devel mailing list Languagetool-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/languagetool-devel
Re: Problem creating rule
Hello Marco, Problem of this rule that word "bonita" is not match to "< token postag_regexp="yes" postag="AQ0CS0|PI0FS000|PI0MS000|NCMS000"> " You can add postag "NCMS000" to second token like this: uma a Erro de concordância uma/um. um Quero uma bonito carro novo. >Вторник, 16 февраля 2016, 14:15 UTC от "Marco A.G.Pinto" <>: > >Hello! > >Only today I had the chance of dedicating some time to improve the complex rule: "um/uma + adj + noun" (male/female). > >But it is giving an error in TESTRULES PT. > >What am I doing wrong?: > > > > > > um > > > uma > > Erro de concordância um/uma. > uma > Quero um bonita foto dela. > > > >Thanks! > >Kind regards, > >Marco A.G.Pinto > -- Yakov Reztsov -- Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=272487151=/4140___ Languagetool-devel mailing list Languagetool-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/languagetool-devel
Re: Problem in rule
Marco A.G.Pinto marcoagpi...@mail.telepac.pt wrote: Hello! I was trying to create a rule based on the book I purchased: Como é os tomates? Como é as peras? (What is the price of blah blah asking in a store/fair) The rule would check for the words: 1) como 2) é 3) os/as (I used a regexp=yes) and suggest to change the 2) é (singular) with são (plural) !-- A COMO É AS/OS a como são as/os -- rule id=A_COMO_É_AS_OS name=a como são as/os pattern marker tokena/token tokencomo/token tokené/token token regexp=yesos|as/token /marker /pattern messageSubstituir «a como é» por suggestiona como são/suggestion./message example type=incorrectmarkerA como é os tomates/marker?/example example type=correctmarkerA como são os tomates/marker?/example /rule When I type: testrules pt it gives errors :( I am still facing difficulties creating more complex rules :( Can someone suggest how to fix this rule? I did not try, but I think that the position of marker.../marker is inconsistent between the pattern and the example. Instead of ... example type=incorrectmarkerA como é os tomates/marker?/example ... it should be... example type=incorrectmarkerA como é os/marker tomates?/example Regards Dominique -- 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=121051231iu=/4140/ostg.clktrk ___ Languagetool-devel mailing list Languagetool-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/languagetool-devel