Spaces:
Sleeping
Sleeping
Piyushmryaa
commited on
Commit
•
6d752b4
1
Parent(s):
2f313a9
app2.py
Browse files
app.py
CHANGED
@@ -69,9 +69,14 @@ def predictsentence(postagsOfSentence):
|
|
69 |
return chunks
|
70 |
def input_(input):
|
71 |
input = input.split(',')
|
72 |
-
inputs = [int(
|
|
|
|
|
|
|
|
|
|
|
73 |
return inputs
|
74 |
-
st.title('
|
75 |
input = st.text_input('Input the pos tags')
|
76 |
inputs = input_(input)
|
77 |
output = predictsentence(inputs)
|
@@ -81,4 +86,3 @@ st.write(output)
|
|
81 |
# data = output
|
82 |
# df = pd.DataFrame.from_dict(data)
|
83 |
# st.dataframe(df)
|
84 |
-
|
|
|
69 |
return chunks
|
70 |
def input_(input):
|
71 |
input = input.split(',')
|
72 |
+
inputs = [int(x.strip()) for x in input]
|
73 |
+
# for i in input:
|
74 |
+
# if i.isalphanumeric():
|
75 |
+
# inputs.append(int(input))
|
76 |
+
# else:
|
77 |
+
# st.write('Invalid Input')
|
78 |
return inputs
|
79 |
+
st.title('Chunk tagging')
|
80 |
input = st.text_input('Input the pos tags')
|
81 |
inputs = input_(input)
|
82 |
output = predictsentence(inputs)
|
|
|
86 |
# data = output
|
87 |
# df = pd.DataFrame.from_dict(data)
|
88 |
# st.dataframe(df)
|
|