Created by: NProkoptsev
In https://github.com/deepmipt/DeepPavlov/blob/master/deeppavlov/metrics/fmeasure.py#L176-L182 We have quadratic complexity for counting true positives. This piece of code takes up to 7 hours when training set is about 1kk samples long.