emirkocak commited on
Commit
c7ab208
1 Parent(s): 9b85141

Update test.py

Browse files
Files changed (1) hide show
  1. test.py +3 -1
test.py CHANGED
@@ -89,8 +89,10 @@ def bert_encode(data):
89
 
90
 
91
  def test_predict(text):
 
 
92
 
93
- test_encoded = bert_encode(text)
94
  test_dataset = (
95
  tf.data.Dataset
96
  .from_tensor_slices((test_encoded))
 
89
 
90
 
91
  def test_predict(text):
92
+
93
+ text = clean_text(text)
94
 
95
+ test_encoded = bert_encode([text])
96
  test_dataset = (
97
  tf.data.Dataset
98
  .from_tensor_slices((test_encoded))