venkatasg commited on
Commit
41ad560
·
1 Parent(s): c94fbaa

No SD for now

Browse files
Files changed (2) hide show
  1. README.md +2 -2
  2. gleu.py +1 -2
README.md CHANGED
@@ -1,5 +1,5 @@
1
  ---
2
- title: gleu
3
  tags:
4
  - evaluate
5
  - metric
@@ -10,7 +10,7 @@ app_file: app.py
10
  pinned: false
11
  ---
12
 
13
- # Metric Card for gleu
14
 
15
  ## Metric Description
16
 
 
1
  ---
2
+ title: GLEU
3
  tags:
4
  - evaluate
5
  - metric
 
10
  pinned: false
11
  ---
12
 
13
+ # Metric Card for GLEU
14
 
15
  ## Metric Description
16
 
gleu.py CHANGED
@@ -11,7 +11,6 @@
11
  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
  # See the License for the specific language governing permissions and
13
  # limitations under the License.
14
- """TODO: Add a description here."""
15
 
16
  import evaluate
17
  import datasets
@@ -243,4 +242,4 @@ class gleu(evaluate.Metric):
243
  sent_scores = [gleu_calculator.compute_gleu(stats) for stats in iter_stats]
244
  mean_score = round(mean(sent_scores),2)
245
  std_score = round(std(sent_scores),2)
246
- return {"mean_gleu_score": mean_score, 'SD': std_score}
 
11
  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
  # See the License for the specific language governing permissions and
13
  # limitations under the License.
 
14
 
15
  import evaluate
16
  import datasets
 
242
  sent_scores = [gleu_calculator.compute_gleu(stats) for stats in iter_stats]
243
  mean_score = round(mean(sent_scores),2)
244
  std_score = round(std(sent_scores),2)
245
+ return {"mean_gleu_score": mean_score}