Spaces:
Runtime error
Runtime error
github-actions
commited on
Commit
·
5c3c11c
1
Parent(s):
07cb4fb
Auto files update [main]
Browse files- README.md +2 -2
- requirements.txt +1 -1
README.md
CHANGED
@@ -37,8 +37,8 @@ The metric has shown higher correlation with human evaluation than `BLEU` and `a
|
|
37 |
|
38 |
- `refarences` (`list[str]` or `list[list[str]]`): reference code
|
39 |
- `predictions` (`list[str]`) predicted code
|
40 |
-
- `lang` (`str`): code language, see `codebleu.AVAILABLE_LANGS` for available languages (python, c_sharp, java at the moment)
|
41 |
-
- `weights` (tuple[float,float,float,float]): weights of the `ngram_match`, `weighted_ngram_match`, `syntax_match`, and `dataflow_match` respectively, defaults to `(0.25, 0.25, 0.25, 0.25)`
|
42 |
- `tokenizer` (`callable`): to split code string to tokens, defaults to `s.split()`
|
43 |
|
44 |
|
|
|
37 |
|
38 |
- `refarences` (`list[str]` or `list[list[str]]`): reference code
|
39 |
- `predictions` (`list[str]`) predicted code
|
40 |
+
- `lang` (`str`): code language, see `codebleu.AVAILABLE_LANGS` for available languages (python, c_sharp c, cpp, javascript, java, php at the moment)
|
41 |
+
- `weights` (`tuple[float,float,float,float]`): weights of the `ngram_match`, `weighted_ngram_match`, `syntax_match`, and `dataflow_match` respectively, defaults to `(0.25, 0.25, 0.25, 0.25)`
|
42 |
- `tokenizer` (`callable`): to split code string to tokens, defaults to `s.split()`
|
43 |
|
44 |
|
requirements.txt
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
git+https://github.com/huggingface/evaluate@main
|
2 |
-
codebleu
|
|
|
1 |
git+https://github.com/huggingface/evaluate@main
|
2 |
+
codebleu>=0.1.8,<1.0.0
|