wilsontam commited on
Commit
f934fcc
1 Parent(s): e0cb88c

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -0
README.md CHANGED
@@ -10,6 +10,7 @@ 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
  ---
15
  ```python
@@ -20,6 +21,7 @@ def single_test(tokenizer, title_body_pair):
20
  model.eval()
21
  outputs = model(**result)
22
  predictions = outputs.logits.argmax(dim=-1)
 
23
  return True if predictions == 0 else False
24
 
25
  if __name__ == '__main__':
 
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
+ Credit: Jiakai Zou, Wilson Tam
14
 
15
  ---
16
  ```python
 
21
  model.eval()
22
  outputs = model(**result)
23
  predictions = outputs.logits.argmax(dim=-1)
24
+ # There was a mistake in flipping the labels.
25
  return True if predictions == 0 else False
26
 
27
  if __name__ == '__main__':