Skip to content

Commit

Permalink
another typo :(
Browse files Browse the repository at this point in the history
  • Loading branch information
amydunphy authored Aug 29, 2023
1 parent a31d443 commit ea519b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/lib/model/test_fasttext.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def test_respond(self):
self.assertEqual(response[1].response, {'language': 'zh', 'script': 'Hans', 'score': 0.8305})
self.assertEqual(response[2].response, {'language': 'ks', 'script': 'Arab', 'score': 0.9999})
self.assertEqual(response[3].response, {'language': 'bo', 'script': 'Tibt', 'score': 0.2168}) #non-text content returns random language with low certainty
self.assertEqual(response[3].response, {'language': 'en', 'script': None, 'score': 0.8267}) #empty string returns english with high-ish confidence
self.assertEqual(response[4].response, {'language': 'en', 'script': None, 'score': 0.8267}) #empty string returns english with high-ish confidence

if __name__ == '__main__':
unittest.main()

0 comments on commit ea519b3

Please sign in to comment.