Update Space (evaluate main: ce94aee2)
Browse files- README.md +2 -2
- requirements.txt +1 -1
README.md
CHANGED
@@ -55,7 +55,7 @@ Example for a single string
|
|
55 |
>>> wordlength = evaluate.load("word_length", module_type="measurement")
|
56 |
>>> results = wordlength.compute(data=data)
|
57 |
>>> print(results)
|
58 |
-
{'
|
59 |
```
|
60 |
|
61 |
Example for a multiple strings
|
@@ -63,7 +63,7 @@ Example for a multiple strings
|
|
63 |
>>> data = ["hello sun and goodbye moon", "foo bar foo bar"]
|
64 |
>>> wordlength = evaluate.load("word_length", module_type="measurement")
|
65 |
>>> results = wordlength.compute(data=text)
|
66 |
-
{'
|
67 |
```
|
68 |
|
69 |
## Citation(s)
|
|
|
55 |
>>> wordlength = evaluate.load("word_length", module_type="measurement")
|
56 |
>>> results = wordlength.compute(data=data)
|
57 |
>>> print(results)
|
58 |
+
{'average_word_length': 5}
|
59 |
```
|
60 |
|
61 |
Example for a multiple strings
|
|
|
63 |
>>> data = ["hello sun and goodbye moon", "foo bar foo bar"]
|
64 |
>>> wordlength = evaluate.load("word_length", module_type="measurement")
|
65 |
>>> results = wordlength.compute(data=text)
|
66 |
+
{'average_word_length': 4.5}
|
67 |
```
|
68 |
|
69 |
## Citation(s)
|
requirements.txt
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
-
git+https://github.com/huggingface/evaluate.git@
|
2 |
nltk~=3.7
|
|
|
1 |
+
git+https://github.com/huggingface/evaluate.git@ce94aee21a54915d2f045b5a779d0927e3d1eacd
|
2 |
nltk~=3.7
|