Back to LanguageTool Homepage - Privacy - Imprint

Profiling rules in languagetool-commandline


(Andriy) #1

I was trying to take a shot at profiling my rules via -p argument in commandline tools but I see that most of them produce very close results. Looking at the code I realized that we include analyzeSentence step in the timing for each rule.
But if disambiguator has dozens of rules in it then the time for the actual checking rule would not have much impact on timing.
Would it make sense to separate the analyze step out of the benchmark? Perhaps with its own benchmark?
If yes I could prepare the change.

Thanks
Andriy