github-actions commited on
Commit
133867a
1 Parent(s): d4d3b71

chore(auto): update changelog and version [0.6.0]

Browse files
Files changed (2) hide show
  1. README.md +1 -1
  2. codebleu.py +1 -1
README.md CHANGED
@@ -16,7 +16,7 @@ pinned: false
16
 
17
  This repository contains an unofficial `CodeBLEU` implementation that supports `Linux`, `MacOS` and `Windows`. It is available through `PyPI` and the `evaluate` library.
18
 
19
- Available for: `Python`, `C`, `C#`, `C++`, `Java`, `JavaScript`, `PHP`, `Go`, `Ruby`.
20
 
21
  ---
22
 
 
16
 
17
  This repository contains an unofficial `CodeBLEU` implementation that supports `Linux`, `MacOS` and `Windows`. It is available through `PyPI` and the `evaluate` library.
18
 
19
+ Available for: `Python`, `C`, `C#`, `C++`, `Java`, `JavaScript`, `PHP`, `Go`, `Ruby`, `Rust`.
20
 
21
  ---
22
 
codebleu.py CHANGED
@@ -41,7 +41,7 @@ Args:
41
  should be a string with tokens separated by spaces.
42
  references: list of reference for each prediction. Each
43
  reference should be a string with tokens separated by spaces.
44
- language: programming language in ['java','js','c_sharp','php','c','python','cpp']. Please note that, due to the way Datasets works, the number of entities in the language array must match the number of entries in the predictions and references arrays, but only the first value from the languages array will be used. This means that you will not be able to compute a metric for different langauges at the same time, but mst do them as sequential calls to CodeBleu.
45
  weights: tuple of 4 floats to use as weights for scores. Defaults to (0.25, 0.25, 0.25, 0.25).
46
  Returns:
47
  codebleu: resulting `CodeBLEU` score,
 
41
  should be a string with tokens separated by spaces.
42
  references: list of reference for each prediction. Each
43
  reference should be a string with tokens separated by spaces.
44
+ language: programming language in ['java','js','c_sharp','php','c','python','cpp','go','ruby','rust']. Please note that, due to the way Datasets works, the number of entities in the language array must match the number of entries in the predictions and references arrays, but only the first value from the languages array will be used. This means that you will not be able to compute a metric for different langauges at the same time, but mst do them as sequential calls to CodeBleu.
45
  weights: tuple of 4 floats to use as weights for scores. Defaults to (0.25, 0.25, 0.25, 0.25).
46
  Returns:
47
  codebleu: resulting `CodeBLEU` score,