Skip to content

Commit 9b108c1

Browse files
committed
Modificato errore Classe Scorer
1 parent 28b4174 commit 9b108c1

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Artificial_QI/config.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
#url = http://localhost:11434/v1/chat/completions
33
#url = http://192.168.2.42:11434/v1/chat/completions
44
# funziona solo con Docker Desktop
5-
#url = http://host.docker.internal:11434/v1/chat/completions
5+
url = http://host.docker.internal:11434/v1/chat/completions
66
# funziona solo con Docker Engine nativo (Linux)
7-
url = http://172.17.0.1:11434/v1/chat/completions
7+
#url = http://172.17.0.1:11434/v1/chat/completions
88
nome = hermes-3-llama-3.2-3b
99

1010
[evaluator]

Artificial_QI/src/application/evaluation/Scorer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
class Scorer:
99
def __init__(self):
10-
self.__bertScorer = BERTScorer(model_type="bert-base-uncased", from_tf=True)
10+
self.__bertScorer = BERTScorer(model_type="bert-base-uncased")
1111
self.__crossEncoder = CrossEncoder('cross-encoder/stsb-roberta-large')
1212
self.__rougeScorer = rouge_scorer.RougeScorer(['rouge1', 'rouge2', 'rougeL'], use_stemmer=True)
1313

0 commit comments

Comments
 (0)