Total Complexity | 1 |
Total Lines | 15 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | import e2edutch.predict |
||
|
|||
2 | from collections import OrderedDict |
||
3 | import tensorflow.compat.v1 as tf |
||
4 | |||
5 | |||
6 | def test_predict(): |
||
7 | example = { |
||
8 | 'doc_key': 'test', |
||
9 | 'sentences': [['Een', 'zin', '.']] |
||
10 | } |
||
11 | predictor = e2edutch.predict.Predictor(model_name='final') |
||
12 | clusters = predictor.predict(example) |
||
13 | predictor.end_session() |
||
14 | assert(len(clusters) >= 0) |
||
15 |