lingpy / pybor

A Python library for borrowing detection based on lexical language models
Apache License 2.0
3 stars 1 forks source link

embrace functions from builtin statistics library in Python #13

Closed LinguList closed 4 years ago

LinguList commented 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).