Re: [Languagetool] Suggesting the infinitive of a verb in a rule
Thanks for the response. Is the method supposed to work for German? I tried to do it as you described, but no use. --Jan Marcin Miłkowski schrieb: W dniu 2012-05-11 09:41, Jan Schreiber pisze: Dear all, I'm currently struggling with a replacement rule. In the following example: example type=incorrectDas hat ja somarkerkommen gemusst/marker./example I would like to suggest the infinitive of the verb gemusst, i.e. müssen, like so: message[Do you mean]suggestionkommen müssensuggestion? The trouble is that I have a list of five or so verbs that is difficult to impossible to cover with a single regular expression: TokenReplacement --- gemusst müssen gewollt wollen gesehen sehen ... Is there a method to do this that I'm unaware of? Yes, you can replace the POS tag, and the POS tag will specify the form of the verb. It would be roughly something like this: suggestionmatch no=1 postag=pattern-for-original-postag postag_regexp=yes postag_replace=pattern-for-infitive//suggestion You simply do regular expression replacement from the original POS tag to the target one. Regards, Marcin -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Languagetool-devel mailing list Languagetool-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/languagetool-devel
Re: [Languagetool] Suggesting the infinitive of a verb in a rule
@ all: Thanks for the replies. @ Daniel, Markus: Now what? So far only one out of some 1,200 German rules needs this feature. Is it worth the effort? OTOH it doesn't look like much work. gulp21 schrieb: Thanks for the response. Is the method supposed to work for German? I tried to do it as you described, but no use. --Jan According to http://languagetool.wikidot.com/tips-and-tricks, it only works for English, Polish, and Dutch. For some languages - currently English, Polish, and Dutch - it's possible to inflect the words being suggested. Regards Markus -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Languagetool-devel mailing list Languagetool-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/languagetool-devel
Re: [Languagetool] Suggesting the infinitive of a verb in a rule
@Jan: It is a bit of work, but language regularities will help in most cases. The affix flags and derivations in the hunspell dictionary could be of help. I spent a lot of time doing this for Dutch, which is rather similar to German. Ruud On 11-05-12 20:42, Daniel Naber wrote: On Freitag, 11. Mai 2012, Jan Schreiber wrote: @ Daniel, Markus: Now what? So far only one out of some 1,200 German rules needs this feature. Is it worth the effort? OTOH it doesn't look like much work. It will also make our OXT a bit bigger (1-2MB?). Anyway, we'll sooner or later need it anyway. It can be used to make suggestions for agreement errors, for example. Would you like to try to create such a file, Jan? Regards Daniel -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Languagetool-devel mailing list Languagetool-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/languagetool-devel
Re: [Languagetool] Suggesting the infinitive of a verb in a rule
On Freitag, 11. Mai 2012, Ruud Baars wrote: It is a bit of work, but language regularities will help in most cases. The affix flags and derivations in the hunspell dictionary could be of help. Isn't the synth dict just the opposite of our standard dict, i.e. from POS-word instead of word-POS? So isn't the data set the same? Regards Daniel -- http://www.danielnaber.de -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Languagetool-devel mailing list Languagetool-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/languagetool-devel
Re: [Languagetool] Suggesting the infinitive of a verb in a rule
When the current data has the data word - postag - base word The data is there. The generation process was delivered to me by Marcin. Ruud On 11-05-12 23:15, Daniel Naber wrote: On Freitag, 11. Mai 2012, Ruud Baars wrote: It is a bit of work, but language regularities will help in most cases. The affix flags and derivations in the hunspell dictionary could be of help. Isn't the synth dict just the opposite of our standard dict, i.e. from POS-word instead of word-POS? So isn't the data set the same? Regards Daniel -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Languagetool-devel mailing list Languagetool-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/languagetool-devel