tomofi commited on
Commit
4704dad
1 Parent(s): af57430

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -3
app.py CHANGED
@@ -5,6 +5,10 @@ os.system('git clone --depth 1 https://github.com/neologd/mecab-unidic-neologd.g
5
 
6
  import streamlit as st
7
 
 
 
 
 
8
  import MeCab
9
 
10
  st.set_page_config(page_title="NEologd demo")
@@ -24,7 +28,7 @@ def make_row(word):
24
  pos1=ff[0], pos2=ff[1], pos3=ff[2], pos4=ff[3])
25
 
26
  """
27
- ### [mecab-ipadic-NEologd : Neologism dictionary for MeCab](https://github.com/neologd/mecab-ipadic-neologd)
28
  """
29
 
30
  data = []
@@ -41,7 +45,7 @@ while node:
41
  st.table(data)
42
 
43
  """
44
- ### [mecab-unidic-NEologd : Neologism dictionary for unidic-mecab](https://github.com/neologd/mecab-unidic-neologd)
45
  """
46
 
47
  data = []
@@ -58,7 +62,7 @@ while node:
58
  st.table(data)
59
 
60
  """
61
- ### [MeCab](https://taku910.github.io/mecab/)
62
  """
63
 
64
  data = []
 
5
 
6
  import streamlit as st
7
 
8
+ if st.button('Update NEologd', help='It may take some time'):
9
+ os.system('cd mecab-ipadic-neologd && ./bin/install-mecab-ipadic-neologd -n -y -u -p $PWD')
10
+ os.system('cd mecab-unidic-neologd && ./bin/install-mecab-unidic-neologd -n -y -u -p $PWD')
11
+
12
  import MeCab
13
 
14
  st.set_page_config(page_title="NEologd demo")
 
28
  pos1=ff[0], pos2=ff[1], pos3=ff[2], pos4=ff[3])
29
 
30
  """
31
+ #### [mecab-ipadic-NEologd : Neologism dictionary for MeCab](https://github.com/neologd/mecab-ipadic-neologd)
32
  """
33
 
34
  data = []
 
45
  st.table(data)
46
 
47
  """
48
+ #### [mecab-unidic-NEologd : Neologism dictionary for unidic-mecab](https://github.com/neologd/mecab-unidic-neologd)
49
  """
50
 
51
  data = []
 
62
  st.table(data)
63
 
64
  """
65
+ #### [MeCab](https://taku910.github.io/mecab/)
66
  """
67
 
68
  data = []