Update README.md
Browse files
README.md
CHANGED
@@ -10,7 +10,9 @@ widget:
|
|
10 |
This is the model used for knowledge clustering where we feed title-body pair and the classifier predicts if the pair is valid or not.
|
11 |
For further information, please refer to https://github.com/yctam/dstc10_track2_task2 for the Github repository.
|
12 |
|
13 |
-
|
|
|
|
|
14 |
def single_test(tokenizer, title_body_pair):
|
15 |
result = tokenizer([title_body_pair], return_tensors="pt")
|
16 |
result.to(device)
|
@@ -24,4 +26,4 @@ if __name__ == '__main__':
|
|
24 |
body = "Yes, 24 Hours Front Desk Avaliable."
|
25 |
pair = (sentence, body)
|
26 |
print(single_test(pair)) # Expect: True
|
27 |
-
|
|
|
10 |
This is the model used for knowledge clustering where we feed title-body pair and the classifier predicts if the pair is valid or not.
|
11 |
For further information, please refer to https://github.com/yctam/dstc10_track2_task2 for the Github repository.
|
12 |
|
13 |
+
|
14 |
+
---
|
15 |
+
```python
|
16 |
def single_test(tokenizer, title_body_pair):
|
17 |
result = tokenizer([title_body_pair], return_tensors="pt")
|
18 |
result.to(device)
|
|
|
26 |
body = "Yes, 24 Hours Front Desk Avaliable."
|
27 |
pair = (sentence, body)
|
28 |
print(single_test(pair)) # Expect: True
|
29 |
+
```
|