priyank commited on
Commit
0c8ca4a
1 Parent(s): c0bf303

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +15 -3
README.md CHANGED
@@ -1,3 +1,5 @@
 
 
1
  ```
2
  import torch
3
  from transformers import T5ForConditionalGeneration,T5Tokenizer
@@ -40,10 +42,10 @@ beam_outputs = model.generate(
40
  )
41
 
42
 
43
- print ("\
44
  Apprentice Query ::")
45
  print (sentence)
46
- print ("\
47
  Auto Generated Instruction ::")
48
  final_outputs =[]
49
  for beam_output in beam_outputs:
@@ -57,12 +59,22 @@ for i, final_output in enumerate(final_outputs):
57
 
58
  ```
59
 
 
 
60
  Apprentice Query ::
61
  ask user to provide his date of birth
62
 
63
-
64
  Auto Generated Instruction ::
65
  0: ask for the entity person_date_of_birth
66
  1: ask “What is your date of birth?”
67
 
 
 
 
 
 
 
 
 
 
68
  Reference: https://github.com/ramsrigouthamg/Paraphrase-any-question-with-T5-Text-To-Text-Transfer-Transformer-
 
1
+ ## This is the model where we enter input in varying forms of natural language and it generates instructions which can be used in later stages of the BPMN, we fine tuned t5 on our own data.
2
+
3
  ```
4
  import torch
5
  from transformers import T5ForConditionalGeneration,T5Tokenizer
 
42
  )
43
 
44
 
45
+ print ("\\
46
  Apprentice Query ::")
47
  print (sentence)
48
+ print ("\\
49
  Auto Generated Instruction ::")
50
  final_outputs =[]
51
  for beam_output in beam_outputs:
 
59
 
60
  ```
61
 
62
+ ## Output
63
+ ```
64
  Apprentice Query ::
65
  ask user to provide his date of birth
66
 
 
67
  Auto Generated Instruction ::
68
  0: ask for the entity person_date_of_birth
69
  1: ask “What is your date of birth?”
70
 
71
+
72
+ Apprentice Query ::
73
+ IF (assert(user.balance > $100)) THEN (say you need more balance)
74
+
75
+ Auto Generated Instruction ::
76
+ 0: IF (assert(user.balance > $100)) THEN (say you need more balance)
77
+
78
+ ```
79
+
80
  Reference: https://github.com/ramsrigouthamg/Paraphrase-any-question-with-T5-Text-To-Text-Transfer-Transformer-