Update README.md
Browse files
README.md
CHANGED
@@ -33,7 +33,7 @@ answers = [
|
|
33 |
]
|
34 |
|
35 |
model = CrossEncoder(
|
36 |
-
"
|
37 |
default_activation_function=torch.nn.Identity(),
|
38 |
max_length=512,
|
39 |
device="cuda" if torch.cuda.is_available() else "cpu"
|
@@ -58,7 +58,7 @@ answers = [
|
|
58 |
"Gdy trwała kampania politycy zapewniali, że rozprawią się z zakazem niedzielnego handlu."
|
59 |
]
|
60 |
|
61 |
-
model_name = "
|
62 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
63 |
model = AutoModelForSequenceClassification.from_pretrained(model_name)
|
64 |
texts = [f"{query}</s></s>{answer}" for answer in answers]
|
|
|
33 |
]
|
34 |
|
35 |
model = CrossEncoder(
|
36 |
+
"axotion/polish-reranker-base-ranknet",
|
37 |
default_activation_function=torch.nn.Identity(),
|
38 |
max_length=512,
|
39 |
device="cuda" if torch.cuda.is_available() else "cpu"
|
|
|
58 |
"Gdy trwała kampania politycy zapewniali, że rozprawią się z zakazem niedzielnego handlu."
|
59 |
]
|
60 |
|
61 |
+
model_name = "axotion/polish-reranker-base-ranknet"
|
62 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
63 |
model = AutoModelForSequenceClassification.from_pretrained(model_name)
|
64 |
texts = [f"{query}</s></s>{answer}" for answer in answers]
|