test.test_bert   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 7
dl 0
loc 8
rs 10
c 0
b 0
f 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A test_encode_sentences() 0 5 1
1
import e2edutch.bert
0 ignored issues
show
introduced by
Missing module docstring
Loading history...
2
3
def test_encode_sentences():
0 ignored issues
show
introduced by
Missing function or method docstring
Loading history...
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