Re: Create rule - comma before word(s)

2016-04-26 Thread Marco A.G.Pinto
Thanks, Jan, it has worked!

On 26/04/2016 20:33, Jan Schreiber wrote:
> Hi Marco,
>
> Here's what I would try:
>
> 
> 
>   
> 
>   
> [,;:—\–\(]
>   
>   mas|porém|contudo|entretanto|todavia
> 
> Usar vírgula: \1,
> Eu gosto muito de
> chocolate mas não posso comer para não engordar.
>   
>   
> 
>   
> [,;:—\–\(]
>   
>   no
>   entanto
> 
> Usar vírgula: \1,
> Eu gosto muito de
> chocolate no entanto não posso comer para não
> engordar.
>   
> 
>
>
> Am 26.04.2016 um 15:43 schrieb Marco A.G.Pinto:
>> Hello!
>>
>> Sorry for not asking before but I have been very busy and completely
>> forgot about it.
>>
>> How do I make it work with:
>>
>> 
>> 
>>   
>>   [,;:–—\(]
>> 
>> mas|porém|contudo|entretanto|todavia
>> 
>>   
>>   Usar vírgula: \1,
>>   Pensa primeiro, ou
>> seja escolhe acertadamente.
>> 
>>
>> Also, with the words: "no entanto"?
>>
>> Thanks!
>>
>> Kind regards,
>>  >Marco A.G.Pinto
>>---
>>
>> On 03/03/2016 19:03, Marcin Miłkowski wrote:
>>> W dniu 03.03.2016 o 19:06, Marco A.G.Pinto pisze:
 Hello!

 The following Portuguese words require a comma before them:
 1) Eu gosto muito de chocolate, *mas *não posso comer para não engordar.
 2) Eu gosto muito de chocolate, *porém *não posso comer para não engordar.
 3) Eu gosto muito de chocolate, *contudo *não posso comer para não 
 engordar.
 4) Eu gosto muito de chocolate, *no entanto* não posso comer para não
 engordar.
 5) Eu gosto muito de chocolate, *entretanto *não posso comer para não
 engordar.
 6) Eu gosto muito de chocolate, *todavia *não posso comer para não 
 engordar.


 Is there a simple way of adapting the rule Yakov helped me with the
 other day?:
 *
  

  
  ou
  seja
  
  ,

Usar vírgula: \1 \2,
Pensa primeiro, ou
 seja escolhe acertadamente.
  *


 PS-> Notice that in example 4) it is two words, not one.
>>> Actually, I would write it in a slightly more general way.
>>>
>>>
>>> [,;:–—\(]
>>> 
>>> no
>>> entanto
>>> 
>>>
>>> Why? Just because one usually use an opening parenthesis, a colon etc. 
>>> instead of a comma in some context. And exceptions have a slightly 
>>> different logic than negation, which may become tricky in some 
>>> situations with regular expressions (probably not here, though).
>>>
>>> Best,
>>> Marcin
>>>
 Thanks!

 Kind regards,
 >Marco A.G.Pinto
   ---

 --

>> -- 

-- 
--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z___
Languagetool-devel mailing list
Languagetool-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-devel


Re: Multithreaded LT optimization (take 2)

2016-04-26 Thread Daniel Naber
On 2016-04-25 20:18, Andriy Rysin wrote:

> How many cores do you have?

Four. I just tried with a longer German text (3MB) but it still is about 
10% slower in the new branch.

Regards
  Daniel


--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
___
Languagetool-devel mailing list
Languagetool-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-devel