Skip to content

Commit

Permalink
Adding list_duplicates=True to example. (#263)
Browse files Browse the repository at this point in the history
  • Loading branch information
meg-huggingface authored Aug 19, 2022
1 parent d5ecbe4 commit 3df77b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion measurements/text_duplicates/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ Example with multiple duplicates and `list_duplicates=True`:
```python
>>> data = ["hello sun", "goodbye moon", "hello sun", "foo bar", "foo bar"]
>>> duplicates = evaluate.load("text_duplicates")
>>> results = duplicates.compute(data=data)
>>> results = duplicates.compute(data=data, list_duplicates=True)
>>> print(results)
{'duplicate_fraction': 0.4, 'duplicates_list': {'hello sun': 2, 'foo bar': 2}}
```
Expand Down

0 comments on commit 3df77b4

Please sign in to comment.