lsy641 commited on
Commit
6e74774
1 Parent(s): dac5108

update README

Browse files
Files changed (1) hide show
  1. distinct.py +3 -1
distinct.py CHANGED
@@ -51,9 +51,11 @@ _CITATION = """\
51
 
52
 
53
  _DESCRIPTION = """\
54
- Distinct metric is to calculate corpus-level diversity of language. We provide two versions of distinct score. Expectation-Adjusted-Distinct is the default one, which removes
55
  the biases of the original distinct score on lengthier sentences. Distinct is the original version.
56
 
 
 
57
  For the use of Expectation-Adjusted-Distinct, vocab_size is required.
58
 
59
  Please follow ACL paper https://aclanthology.org/2022.acl-short.86 for motivation and follow the rules of thumb provided by https://github.com/lsy641/Expectation-Adjusted-Distinct/blob/main/EAD.ipynb to determine the vocab_size
 
51
 
52
 
53
  _DESCRIPTION = """\
54
+ Distinct metric is to calculate corpus-level diversity of language. We provide two versions of distinct score. Expectation-Adjusted-Distinct (EAD) is the default one, which removes
55
  the biases of the original distinct score on lengthier sentences. Distinct is the original version.
56
 
57
+ ![Comparison between original distinct and and EAD ](https://huggingface.co/spaces/lsy641/distinct/blob/main/distinct%20compare%20pic.jpg)
58
+
59
  For the use of Expectation-Adjusted-Distinct, vocab_size is required.
60
 
61
  Please follow ACL paper https://aclanthology.org/2022.acl-short.86 for motivation and follow the rules of thumb provided by https://github.com/lsy641/Expectation-Adjusted-Distinct/blob/main/EAD.ipynb to determine the vocab_size