taishi-i commited on
Commit
743d68a
β€’
1 Parent(s): 4fc24ec

update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
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 python module for Japanese word segmentation/POS-tagging.
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=["text", "text"],
 
 
 
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