guihu commited on
Commit
32a019a
·
verified ·
1 Parent(s): a163a9c

Streamline the usage notes around the examples

Browse files
Files changed (1) hide show
  1. README.md +3 -3
README.md CHANGED
@@ -33,20 +33,20 @@ outputs = model.generate(**inputs, num_beams=5, max_new_tokens=256)
33
  print(tokenizer.decode(outputs[0], skip_special_tokens=True, clean_up_tokenization_spaces=False))
34
  ```
35
 
36
- Output:
37
 
38
  ```text
39
  <S> Lina Dorado <P> birth year <O> 1975 <S> Lina Dorado <P> birth place <O> Bogotá
40
  ```
41
 
42
- For a Russian sentence, use the `Parse Russian` prefix:
43
 
44
  ```text
45
  Input: Parse Russian Валюта Индии - Индийская рупия.
46
  Output: <S> India <P> currency <O> Indian rupee
47
  ```
48
 
49
- The markers `<S>`, `<P>`, and `<O>` identify the subject, relation, and object of each triple. The reproduction code removes exact duplicate triples before evaluation.
50
 
51
  The [base model](https://huggingface.co/cointegrated/rut5-base-multitask) is distributed under MIT. The WebNLG data used for fine-tuning are distributed under [CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/).
52
 
 
33
  print(tokenizer.decode(outputs[0], skip_special_tokens=True, clean_up_tokenization_spaces=False))
34
  ```
35
 
36
+ English output (`<S>` = subject, `<P>` = relation, `<O>` = object):
37
 
38
  ```text
39
  <S> Lina Dorado <P> birth year <O> 1975 <S> Lina Dorado <P> birth place <O> Bogotá
40
  ```
41
 
42
+ Russian example:
43
 
44
  ```text
45
  Input: Parse Russian Валюта Индии - Индийская рупия.
46
  Output: <S> India <P> currency <O> Indian rupee
47
  ```
48
 
49
+ The scorer counts identical predicted triples only once per input.
50
 
51
  The [base model](https://huggingface.co/cointegrated/rut5-base-multitask) is distributed under MIT. The WebNLG data used for fine-tuning are distributed under [CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/).
52