eloukas commited on
Commit
909c3a4
·
1 Parent(s): 316353b

Update title

Browse files
Files changed (1) hide show
  1. app.py +32 -31
app.py CHANGED
@@ -58,61 +58,62 @@ def create_demo():
58
  with gr.Blocks(theme=theme) as demo:
59
  gr.Markdown(
60
  """
61
- # The Grεεk NLP Toolkit 🇬🇷
62
  This is a demonstration space for our open-source Python toolkit (`gr-nlp-toolkit`), which supports state-of-the-art natural language processing capabilities in Greek.
63
 
64
  ## Key Features:
65
- - Greeklish to Greek Conversion (G2G)
66
- - Dependency Parsing (DP)
67
- - Part-of-Speech (POS) Tagging
68
  - Named Entity Recognition (NER)
 
 
 
 
69
  """
70
  )
71
 
72
- with gr.Tab("Greeklish to Greek"):
73
- g2g_input = gr.Textbox(
74
- label="Enter Greeklish text",
75
- placeholder=G2G_PLACEHOLDER,
76
- )
77
- g2g_output = gr.Textbox(label="Greek text")
78
- g2g_button = gr.Button("Submit")
79
- g2g_button.click(greeklish_to_greek, inputs=g2g_input, outputs=g2g_output)
80
-
81
- with gr.Tab("Dependency Parsing"):
82
- dp_input = gr.Textbox(
83
  label="Enter text",
84
- placeholder=DP_PLACEHOLDER,
 
 
 
 
 
85
  )
86
- dp_output = gr.Textbox(label="Dependency Parsing annotations")
87
- dp_button = gr.Button("Submit")
88
- dp_button.click(dependency_parsing, inputs=dp_input, outputs=dp_output)
89
 
90
- with gr.Tab("Part-of-Speech Tagging"):
91
  pos_input = gr.Textbox(
92
  label="Enter text",
93
  placeholder=POS_PLACEHOLDER,
94
  )
95
- pos_output = gr.Textbox(label="POS Tagging annotations")
96
  pos_button = gr.Button("Submit")
97
  pos_button.click(pos_tagging, inputs=pos_input, outputs=pos_output)
98
 
99
- with gr.Tab("Named Entity Recognition"):
100
- ner_input = gr.Textbox(
101
  label="Enter text",
102
- placeholder=NER_PLACEHOLDER,
103
  )
104
- ner_output = gr.Textbox(label="NER annotations")
105
- ner_button = gr.Button("Submit")
106
- ner_button.click(
107
- named_entity_recognition, inputs=ner_input, outputs=ner_output
 
 
 
 
108
  )
 
 
 
109
 
110
  gr.Markdown(
111
  """
112
 
113
  ## Installation
114
 
115
- The Grεεk NLP toolkit is available on PyPI for Python 3.9+:
116
 
117
  ```sh
118
  pip install gr-nlp-toolkit
@@ -124,8 +125,8 @@ def create_demo():
124
 
125
  ## About the Project
126
 
127
- The Greek NLP Toolkit is the state-of-the-art natural language processing toolkit for modern Greek, [developed by the Natural Language Processing Group at the Athens University of Economics and Business](http://nlp.cs.aueb.gr/).
128
- It supports named entity recognition, part-of-speech tagging, morphological tagging, dependency parsing,
129
  and Greeklish to Greek conversion. This project is part of ongoing research aimed at advancing Greek language processing capabilities.
130
  <br>
131
  <br>
 
58
  with gr.Blocks(theme=theme) as demo:
59
  gr.Markdown(
60
  """
61
+ # The Greek NLP Toolkit 🇬🇷
62
  This is a demonstration space for our open-source Python toolkit (`gr-nlp-toolkit`), which supports state-of-the-art natural language processing capabilities in Greek.
63
 
64
  ## Key Features:
 
 
 
65
  - Named Entity Recognition (NER)
66
+ - Part-of-Speech (POS) and Morphological Tagging
67
+ - Dependency Parsing (DP)
68
+ - Greeklish to Greek Conversion (G2G)
69
+
70
  """
71
  )
72
 
73
+ with gr.Tab("Named Entity Recognition"):
74
+ ner_input = gr.Textbox(
 
 
 
 
 
 
 
 
 
75
  label="Enter text",
76
+ placeholder=NER_PLACEHOLDER,
77
+ )
78
+ ner_output = gr.Textbox(label="NER annotations")
79
+ ner_button = gr.Button("Submit")
80
+ ner_button.click(
81
+ named_entity_recognition, inputs=ner_input, outputs=ner_output
82
  )
 
 
 
83
 
84
+ with gr.Tab("Part-of-Speech and Morphological Tagging"):
85
  pos_input = gr.Textbox(
86
  label="Enter text",
87
  placeholder=POS_PLACEHOLDER,
88
  )
89
+ pos_output = gr.Textbox(label="POS and Morphological Tagging annotations")
90
  pos_button = gr.Button("Submit")
91
  pos_button.click(pos_tagging, inputs=pos_input, outputs=pos_output)
92
 
93
+ with gr.Tab("Dependency Parsing"):
94
+ dp_input = gr.Textbox(
95
  label="Enter text",
96
+ placeholder=DP_PLACEHOLDER,
97
  )
98
+ dp_output = gr.Textbox(label="Dependency Parsing annotations")
99
+ dp_button = gr.Button("Submit")
100
+ dp_button.click(dependency_parsing, inputs=dp_input, outputs=dp_output)
101
+
102
+ with gr.Tab("Greeklish to Greek"):
103
+ g2g_input = gr.Textbox(
104
+ label="Enter Greeklish text",
105
+ placeholder=G2G_PLACEHOLDER,
106
  )
107
+ g2g_output = gr.Textbox(label="Greek text")
108
+ g2g_button = gr.Button("Submit")
109
+ g2g_button.click(greeklish_to_greek, inputs=g2g_input, outputs=g2g_output)
110
 
111
  gr.Markdown(
112
  """
113
 
114
  ## Installation
115
 
116
+ The Greek NLP toolkit is available on PyPI for Python 3.9+:
117
 
118
  ```sh
119
  pip install gr-nlp-toolkit
 
125
 
126
  ## About the Project
127
 
128
+ [The Greek NLP Toolkit]("https://github.com/nlpaueb/gr-nlp-toolkit") is the state-of-the-art natural language processing toolkit for modern Greek, [developed by the Natural Language Processing Group at the Athens University of Economics and Business](http://nlp.cs.aueb.gr/).
129
+ It supports named entity recognition, part-of-speech and morphological tagging, dependency parsing,
130
  and Greeklish to Greek conversion. This project is part of ongoing research aimed at advancing Greek language processing capabilities.
131
  <br>
132
  <br>