Nathan Schneider commited on
Commit
f26c632
·
1 Parent(s): 285f69e

description tweaks

Browse files
Files changed (1) hide show
  1. app.py +11 -9
app.py CHANGED
@@ -12,6 +12,15 @@ DESCR_TOP = """
12
  """
13
 
14
  DESCR_PART_3 = """
 
 
 
 
 
 
 
 
 
15
  <details><summary>Linguistic notes</summary>
16
  <ul>
17
  <li>Some of the tagged items are single words (like <b><i>to</i></b>); others are multiword expressions (like <b><i>according to</i></b>).</li>
@@ -22,21 +31,14 @@ DESCR_PART_3 = """
22
  (“The bird flew <b><i>away</i></b>”).</li>
23
  </ul>
24
  </details>
25
-
26
- <p>Try the examples below, or enter your own text in the box and click the Tag! button.
27
- </p>
28
- """
29
-
30
- DESCR_PARA_1 = """<p>🌐 Enter text <b>in any language</b> to analyze the in-context meanings of adpositions/possessives/case markers.
31
- An <b>adposition</b> is a <i>pre</i>position (that precedes a noun, as in English) or a <i>post</i>position (that follows a noun, as in Japanese).
32
- The tagger adds semantic labels from the SNACS tagset to indicate spatial, temporal, and other kinds of relationships.
33
- See the <a href="https://www.xposition.org/">Xposition site</a> and <a href="https://arxiv.org/abs/1704.02134">PDF manual</a> for details.</p>
34
  """
35
 
36
  DESCR_PARA_2 = """<p>🤖 The tagger is a machine learning <a href="https://github.com/WesScivetti/snacs/tree/main">system</a> (specifically XLM-RoBERTa-large)
37
  that has been fine-tuned on manually tagged data in 5 target languages: English, Mandarin Chinese, Hindi, Gujarati, and Japanese.
38
  The system output is not always correct (even if the model’s confidence estimate is close to 100%),
39
  and will likely be less accurate beyond the target languages.</p>
 
 
40
  """
41
 
42
  # short labels shown on the buttons, long text inserted into the textbox
 
12
  """
13
 
14
  DESCR_PART_3 = """
15
+ <p style="font-size: 120%;">Enter some text in the box (or use the examples below) and click the Tag! button.
16
+ </p>
17
+ """
18
+
19
+ DESCR_PARA_1 = """<p>🌐 Enter text <b>in any language</b> to analyze the in-context meanings of adpositions/possessives/case markers.
20
+ An <b>adposition</b> is a <i>pre</i>position (that precedes a noun, as in English) or a <i>post</i>position (that follows a noun, as in Japanese).
21
+ The tagger adds semantic labels from the SNACS tagset to indicate spatial, temporal, and other kinds of relationships.
22
+ See the <a href="https://www.xposition.org/">Xposition site</a> and <a href="https://arxiv.org/abs/1704.02134">PDF manual</a> for details.</p>
23
+
24
  <details><summary>Linguistic notes</summary>
25
  <ul>
26
  <li>Some of the tagged items are single words (like <b><i>to</i></b>); others are multiword expressions (like <b><i>according to</i></b>).</li>
 
31
  (“The bird flew <b><i>away</i></b>”).</li>
32
  </ul>
33
  </details>
 
 
 
 
 
 
 
 
 
34
  """
35
 
36
  DESCR_PARA_2 = """<p>🤖 The tagger is a machine learning <a href="https://github.com/WesScivetti/snacs/tree/main">system</a> (specifically XLM-RoBERTa-large)
37
  that has been fine-tuned on manually tagged data in 5 target languages: English, Mandarin Chinese, Hindi, Gujarati, and Japanese.
38
  The system output is not always correct (even if the model’s confidence estimate is close to 100%),
39
  and will likely be less accurate beyond the target languages.</p>
40
+
41
+ <p><i>This demo by Wesley Scivetti and Nathan Schneider, 2025 (<a href="https://github.com/WesScivetti/SNACS_English_Demo">code</a>).</i></p>
42
  """
43
 
44
  # short labels shown on the buttons, long text inserted into the textbox