awacke1 commited on
Commit
c0f068b
·
1 Parent(s): 64cc6f6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -4
app.py CHANGED
@@ -10,10 +10,23 @@ pipelines = {model: QANomEndToEndPipeline(model) for model in models}
10
 
11
  description = f"""This is a demo of the full QANom Pipeline - identifying deverbal nominalizations and parsing them with question-answer driven semantic role labeling (QASRL) """
12
  title="QANom End-to-End Pipeline Demo"
13
- examples = [[models[1], "the construction of the officer 's building finished right after the beginning of the destruction of the previous construction .", 0.7],
14
- [models[1], "The doctor asked about the progress in Luke 's treatment .", 0.75],
15
- [models[0], "The Veterinary student was interested in Luke 's treatment of sea animals .", 0.75],
16
- [models[1], "Some reviewers agreed that the criticism raised by the AC is mostly justified .", 0.5]]
 
 
 
 
 
 
 
 
 
 
 
 
 
17
 
18
 
19
  input_sent_box_label = "Insert sentence here, or select from the examples below"
 
10
 
11
  description = f"""This is a demo of the full QANom Pipeline - identifying deverbal nominalizations and parsing them with question-answer driven semantic role labeling (QASRL) """
12
  title="QANom End-to-End Pipeline Demo"
13
+ examples = [[models[1], "Physics is low and everything else was a recommendation. I've met a lot of people that can break the law,
14
+ but I have never met anyone who could break physics.
15
+ ", 0.7],
16
+ [models[1], "It's really just saying, let's boil something down
17
+ to the most fundamental principles, the things that we are most confident are true
18
+ at a foundational level, and that sets your axiomatic base, and then you reason up from there.
19
+ And then you cross check your conclusion against the axiomatic truth.
20
+ Some basics in physics would be like are violating conservation of energy or momentum or something like that, then it's not gonna work.", 0.75],
21
+ [models[0], "So first for any kind of technology problem you have to sort of just make sure you're not violating physics.
22
+ First principles analysis, I think, is something that can be applied to really any walk of life,
23
+ anything really.", 0.75],
24
+ [models[1], "or technology, whatever it might be, and say, "What is this? What is the perfect arrangement of atoms
25
+ that would be the best possible product? And now let us try to figure out how to get the atoms in that shape."
26
+ - I mean, it sounds, it's almost like Rick and Morty absurd
27
+ until you start to really think about it. And you really should think about it in this way
28
+ 'cause everything else is kind of, if you think you might fall victim to the momentum
29
+ of the way things are done in the past, unless you think in this way. - Well, just as a function of inertia, people will want to use the same tools and methods", 0.5]]
30
 
31
 
32
  input_sent_box_label = "Insert sentence here, or select from the examples below"