muchad commited on
Commit
84d08a3
•
1 Parent(s): 24b1580

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +15 -0
README.md CHANGED
@@ -30,6 +30,21 @@ license: mit
30
  ```
31
 
32
  ## Usage 🚀
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
  #### Question Answering
34
 
35
  [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/muchad/qaqg/blob/main/idT5_Question_Answering.ipynb)
 
30
  ```
31
 
32
  ## Usage 🚀
33
+ #### Question Generation
34
+ [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/muchad/qaqg/blob/main/idT5_Question_Generation.ipynb)
35
+
36
+ ```
37
+ from pipeline_qg import pipeline #pipeline_qg.py script in the cloned repo
38
+ qg = pipeline()
39
+
40
+ #sample
41
+ qg("Raja Purnawarman mulai memerintah Kerajaan Tarumanegara pada tahun 395 M.")
42
+
43
+ #output
44
+ => [{'answer': 'Raja Purnawarman','question': 'Siapa yang memerintah Kerajaan Tarumanegara?'}, {'answer': '395 M','question': 'Kapan Raja Purnawarman memerintah Kerajaan Tarumanegara?'}]
45
+ ```
46
+
47
+
48
  #### Question Answering
49
 
50
  [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/muchad/qaqg/blob/main/idT5_Question_Answering.ipynb)