pat-jj commited on
Commit
73c57ed
·
verified ·
1 Parent(s): a90e2a5

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -25,7 +25,7 @@ Base Model: Flan-T5-Large
25
  (S> William gerald standridge| P> Death date| O> April 12, 2014)
26
 
27
  ## **How to Run?**
28
- ```
29
  from transformers import T5Tokenizer, T5ForConditionalGeneration
30
  import torch
31
 
@@ -69,7 +69,7 @@ def generate_triples(input_text: str, model_path: str = "pat-jj/text2triple-flan
69
  ```
70
 
71
  ## Example usage
72
- ```
73
  input_text = """Albert Einstein was born in Ulm, Germany in 1879. He developed the theory of relativity and won the Nobel Prize in Physics in 1921.
74
  Einstein worked as a professor at Princeton University until his death in 1955."""
75
 
 
25
  (S> William gerald standridge| P> Death date| O> April 12, 2014)
26
 
27
  ## **How to Run?**
28
+ ```python
29
  from transformers import T5Tokenizer, T5ForConditionalGeneration
30
  import torch
31
 
 
69
  ```
70
 
71
  ## Example usage
72
+ ```python
73
  input_text = """Albert Einstein was born in Ulm, Germany in 1879. He developed the theory of relativity and won the Nobel Prize in Physics in 1921.
74
  Einstein worked as a professor at Princeton University until his death in 1955."""
75