Spaces:
Runtime error
Runtime error
carrie
commited on
Commit
·
55ea91c
1
Parent(s):
15c3a36
quick fix
Browse files
app.py
CHANGED
@@ -11,15 +11,15 @@ en_nlp = stanza.Pipeline('en', processors='tokenize')
|
|
11 |
|
12 |
|
13 |
article='''
|
14 |
-
# Discourse Structure of Long-form Answers.
|
15 |
## About
|
16 |
This is a demo for our paper: [How Do We Answer Complex Questions: Discourse Structure of Long-form Answers](https://aclanthology.org/2022.acl-long.249/).
|
17 |
Fangyuan Xu, Junyi Jessy Li, Eunsol Choi. 2022.
|
18 |
-
Contact: [Fangyuan Xu](https://www.cs.utexas.edu/~fxu/) via [email protected]
|
19 |
## Model
|
20 |
The model served here is a T5(large)-based role classification model trained on functional roles of ELI5 answers.
|
21 |
## Resources
|
22 |
-
Please see more information (paper/code/data/datasheet) at our [website](https://www.cs.utexas.edu/~fxu/lfqa_discourse/index.html)
|
|
|
|
|
23 |
'''
|
24 |
|
25 |
role_mappings = {
|
@@ -29,6 +29,7 @@ role_mappings = {
|
|
29 |
'Answer - Example': 'Example',
|
30 |
'Miscellaneous': 'Miscellaneous',
|
31 |
'Answer - Organizational sentence': 'Organizational sentence',
|
|
|
32 |
}
|
33 |
|
34 |
def get_ans_sentence_with_stanza(answer_paragraph, pipeline,
|
|
|
11 |
|
12 |
|
13 |
article='''
|
|
|
14 |
## About
|
15 |
This is a demo for our paper: [How Do We Answer Complex Questions: Discourse Structure of Long-form Answers](https://aclanthology.org/2022.acl-long.249/).
|
16 |
Fangyuan Xu, Junyi Jessy Li, Eunsol Choi. 2022.
|
|
|
17 |
## Model
|
18 |
The model served here is a T5(large)-based role classification model trained on functional roles of ELI5 answers.
|
19 |
## Resources
|
20 |
+
Please see more information (paper/code/data/datasheet) at our [website](https://www.cs.utexas.edu/~fxu/lfqa_discourse/index.html).
|
21 |
+
## Contact
|
22 |
+
[Fangyuan Xu](https://www.cs.utexas.edu/~fxu/) via [email protected]
|
23 |
'''
|
24 |
|
25 |
role_mappings = {
|
|
|
29 |
'Answer - Example': 'Example',
|
30 |
'Miscellaneous': 'Miscellaneous',
|
31 |
'Answer - Organizational sentence': 'Organizational sentence',
|
32 |
+
' ': ' ',
|
33 |
}
|
34 |
|
35 |
def get_ans_sentence_with_stanza(answer_paragraph, pipeline,
|