Spaces:
Runtime error
Runtime error
Jeffrey Rathgeber Jr
commited on
test tokenizer
Browse files
app.py
CHANGED
@@ -21,6 +21,11 @@ option = st.selectbox('Which pre-trained model would you like for your sentiment
|
|
21 |
st.write('You selected:', option)
|
22 |
|
23 |
|
|
|
|
|
|
|
|
|
|
|
24 |
if option == 'Pipeline':
|
25 |
# pipeline
|
26 |
preds = classifier(textIn)
|
|
|
21 |
st.write('You selected:', option)
|
22 |
|
23 |
|
24 |
+
tokens = tokenizer.tokenize(textIn)
|
25 |
+
token_ids = tokenizer.convert_tokens_to_ids(tokens)
|
26 |
+
input_ids = tokenizer(textIn)
|
27 |
+
|
28 |
+
|
29 |
if option == 'Pipeline':
|
30 |
# pipeline
|
31 |
preds = classifier(textIn)
|