xiomarablanco commited on
Commit
4991b78
1 Parent(s): 5c164b6

CambioNombreSimilitudSpacyyBertPorSumaTotal

Browse files
Files changed (1) hide show
  1. plentas.py +4 -3
plentas.py CHANGED
@@ -24,7 +24,8 @@ class Plentas():
24
  for student in jsonFile:
25
  for numb_id in student.keys():
26
  for column in student[numb_id].keys():
27
- if column == "SimilitudBert" or column == "SimilitudSpacy":
 
28
  pass
29
  else:
30
  if column not in outputExcel.keys():
@@ -130,8 +131,8 @@ class Plentas():
130
 
131
  AnalysisOfResponses.append({ id : {
132
  "ID": studentID,
133
- "SimilitudSpacy": round(nota_rubrica_spacy,2),
134
- "SimilitudBert": round(nota_rubrica_bert,2),
135
  "NotaSemanticaSpacy": round(spacy_eval_umbral * self.settings.PesoSemantics,2),
136
  "NotaSemanticaBert": round(bert_eval_umbral * self.settings.PesoSemantics,2),
137
  "NotaSintaxis": round(nota_rubrica_sintaxis,2),
 
24
  for student in jsonFile:
25
  for numb_id in student.keys():
26
  for column in student[numb_id].keys():
27
+ #if column == "SimilitudBert" or column == "SimilitudSpacy":
28
+ if column == "SumaTotalBert" or column == "SumaTotalSpacy":
29
  pass
30
  else:
31
  if column not in outputExcel.keys():
 
131
 
132
  AnalysisOfResponses.append({ id : {
133
  "ID": studentID,
134
+ "SumaTotalSpacy": round(nota_rubrica_spacy,2),
135
+ "SumaTotalBert": round(nota_rubrica_bert,2),
136
  "NotaSemanticaSpacy": round(spacy_eval_umbral * self.settings.PesoSemantics,2),
137
  "NotaSemanticaBert": round(bert_eval_umbral * self.settings.PesoSemantics,2),
138
  "NotaSintaxis": round(nota_rubrica_sintaxis,2),