Spaces:
Sleeping
Sleeping
chatthai
commited on
Commit
·
5f3eef8
1
Parent(s):
7e7da2b
Update app.py
Browse files
app.py
CHANGED
|
@@ -101,7 +101,7 @@ def tokenize(text):
|
|
| 101 |
word_end = []
|
| 102 |
|
| 103 |
y_predict = model.predict([x_char, x_type], batch_size = 512)
|
| 104 |
-
y_predict = (y_predict.ravel() > 0.
|
| 105 |
word_end = y_predict[1:].tolist() + [1]
|
| 106 |
|
| 107 |
tokens = []
|
|
|
|
| 101 |
word_end = []
|
| 102 |
|
| 103 |
y_predict = model.predict([x_char, x_type], batch_size = 512)
|
| 104 |
+
y_predict = (y_predict.ravel() > 0.4609375).astype(int)
|
| 105 |
word_end = y_predict[1:].tolist() + [1]
|
| 106 |
|
| 107 |
tokens = []
|