Spaces:
Running
Running
update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ title = "Japanese tokenization demo"
|
|
13 |
default_text = "γγγ«γγγΉγγε
₯εγγSubmit γζΌγγ¦γγ γγγ"
|
14 |
description = """
|
15 |
This is a demo page for nagisa's tokenization.
|
16 |
-
Nagisa is a
|
17 |
It is designed to be a simple and easy-to-use tool.
|
18 |
To try it out, enter some text in the box below and press submit.
|
19 |
https://github.com/taishi-i/nagisa
|
@@ -24,6 +24,7 @@ examples = ["Pythonγ§η°‘εγ«δ½ΏγγγγΌγ«γ§γ", "3ζγ«θ¦γγ3ζ
|
|
24 |
iface = gr.Interface(
|
25 |
fn=tokenize,
|
26 |
inputs=gr.inputs.Textbox(
|
|
|
27 |
lines=num_input_lines,
|
28 |
placeholder=input_placeholder,
|
29 |
default=default_text,
|
@@ -31,7 +32,10 @@ iface = gr.Interface(
|
|
31 |
title=title,
|
32 |
description=description,
|
33 |
examples=examples,
|
34 |
-
outputs=[
|
|
|
|
|
|
|
35 |
)
|
36 |
|
37 |
|
|
|
13 |
default_text = "γγγ«γγγΉγγε
₯εγγSubmit γζΌγγ¦γγ γγγ"
|
14 |
description = """
|
15 |
This is a demo page for nagisa's tokenization.
|
16 |
+
Nagisa is a Python module used for tokenizing and performing Part-of-Speech (POS) tagging on Japanese text.
|
17 |
It is designed to be a simple and easy-to-use tool.
|
18 |
To try it out, enter some text in the box below and press submit.
|
19 |
https://github.com/taishi-i/nagisa
|
|
|
24 |
iface = gr.Interface(
|
25 |
fn=tokenize,
|
26 |
inputs=gr.inputs.Textbox(
|
27 |
+
label="Input text",
|
28 |
lines=num_input_lines,
|
29 |
placeholder=input_placeholder,
|
30 |
default=default_text,
|
|
|
32 |
title=title,
|
33 |
description=description,
|
34 |
examples=examples,
|
35 |
+
outputs=[
|
36 |
+
gr.outputs.Textbox(label="Words"),
|
37 |
+
gr.outputs.Textbox(label="POS tags"),
|
38 |
+
],
|
39 |
)
|
40 |
|
41 |
|