diff --git a/Clarin-SI-logo.png b/Clarin-SI-logo.png new file mode 100644 index 0000000..74f1bd0 Binary files /dev/null and b/Clarin-SI-logo.png differ diff --git a/README.md b/README.md index bc70735..66e66a9 100644 --- a/README.md +++ b/README.md @@ -26,3 +26,6 @@ Example: ```bash python3 dependency-parsetree.py --config_file=official_config.ini ``` + + +[![alt text](https://gitea.cjvt.si/lkrsnik/dependency_parsing/src/branch/master/Clarin-SI-logo.png)](http://www.clarin.si/info/about/) \ No newline at end of file diff --git a/generic.py b/generic.py index 735269f..4c3899e 100644 --- a/generic.py +++ b/generic.py @@ -83,4 +83,4 @@ def get_collocabilities(ngram, unigrams_dict, corpus_size): logdice = 14 + math.log(dice, 2) tscore = (O - E) / math.sqrt(O) simplell = 2 * (O * math.log10(O / E) - (O - E)) - return [('%.4f; N=%.4f, n=%.4f; O=%.4f, E=%.4f, sum_fwi=%.4f, mul_fwi=%.4f' % (mi, N, n, O, E, sum_fwi, mul_fwi)), '%.4f' % mi3, '%.4f' % dice, '%.4f' % logdice, '%.4f' % tscore, '%.4f' % simplell] + return ['%.4f' % mi, '%.4f' % mi3, '%.4f' % dice, '%.4f' % logdice, '%.4f' % tscore, '%.4f' % simplell]