| Total Complexity | 1 |
| Total Lines | 8 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | import e2edutch.bert |
||
|
|
|||
| 2 | |||
| 3 | def test_encode_sentences(): |
||
| 4 | sentences = ['Dit is een zin .'.split(' '), 'Het is slechts een voorbeeld .'.split(' ')] |
||
| 5 | tokenizer, model = e2edutch.bert.load_bert('bertje') |
||
| 6 | emb = e2edutch.bert.encode_sentences(sentences, tokenizer, model) |
||
| 7 | assert emb.shape == (2, 6, 768, 1) |
||
| 8 |