Closed LinguList closed 4 years ago
Just realized that the builtin statistics module offers many functions that we don't need to provide ourselves. Specifically also f-scores, and the like, as they are based on the harmonic mean.
https://docs.python.org/3.8/library/statistics.html#module-statistics
Since we work on python3 only, we can use this as part of the standard library (unlike in code that needs to run on python2 and python3).
Just realized that the builtin statistics module offers many functions that we don't need to provide ourselves. Specifically also f-scores, and the like, as they are based on the harmonic mean.
https://docs.python.org/3.8/library/statistics.html#module-statistics
Since we work on python3 only, we can use this as part of the standard library (unlike in code that needs to run on python2 and python3).