erikve commited on
Commit
fe77cff
1 Parent(s): e2897e4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -4
app.py CHANGED
@@ -38,13 +38,19 @@ def predict(text):
38
  markdown_text = '''
39
  <h1>Structured Sentiment Analysis for Norwegian</h1>
40
  <p align="left">
41
- <br>
42
  This space provides a gradio demo of a <a href="https://huggingface.co/ltg/ssa-perin">pretrained model</a> for structured sentiment analysis (SSA) of Norwegian text, trained on the [NoReC_fine](https://github.com/ltgoslo/norec_fine) dataset by the <a href"https://www.mn.uio.no/ifi/english/research/groups/ltg/">Language Technology Group</a> at the University of Oslo. It implements a method described in the paper <a href="https://aclanthology.org/2022.acl-short.51/">Direct parsing to sentiment graphs</a> by Samuel et al. 2022.
43
- <br>
44
- The model will attempt to identify the following components for a given sentence it deems to be sentiment-bearing: _source expressions_ (the opinion holder), _target expressions_ (what the opinion is directed towards), _polar expressions_ (the part of the text indicating that an opinion is expressed), and finally the _polarity_ (positive or negative).
45
- <br>
 
 
 
 
 
 
46
  To download the model and find more in-depth documentation, please see <a href="https://huggingface.co/ltg/ssa-perin">https://huggingface.co/ltg/ssa-perin</a>
47
  </p>
 
48
  '''
49
 
50
  with gr.Blocks() as demo:
 
38
  markdown_text = '''
39
  <h1>Structured Sentiment Analysis for Norwegian</h1>
40
  <p align="left">
 
41
  This space provides a gradio demo of a <a href="https://huggingface.co/ltg/ssa-perin">pretrained model</a> for structured sentiment analysis (SSA) of Norwegian text, trained on the [NoReC_fine](https://github.com/ltgoslo/norec_fine) dataset by the <a href"https://www.mn.uio.no/ifi/english/research/groups/ltg/">Language Technology Group</a> at the University of Oslo. It implements a method described in the paper <a href="https://aclanthology.org/2022.acl-short.51/">Direct parsing to sentiment graphs</a> by Samuel et al. 2022.
42
+ <br><br>
43
+ The model will attempt to identify the following components for a given sentence it deems to be sentiment-bearing:
44
+ <ul>
45
+ <li> <it>source expressions</it> (the opinion holder), </li>
46
+ <li> <it>target expressions</it> (what the opinion is directed towards), </li>
47
+ <li> <it>polar expressions</it> (the part of the text indicating that an opinion is expressed), </li>
48
+ <li> and finally the <it>polarity</it> (positive or negative). </li>
49
+ </ul>
50
+ <br><br>
51
  To download the model and find more in-depth documentation, please see <a href="https://huggingface.co/ltg/ssa-perin">https://huggingface.co/ltg/ssa-perin</a>
52
  </p>
53
+ <br>
54
  '''
55
 
56
  with gr.Blocks() as demo: