test.test_stanza   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

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

1 Function

Rating   Name   Duplication   Size   Complexity  
A test_processor() 0 4 1
1
import stanza
0 ignored issues
show
introduced by
Missing module docstring
Loading history...
2
import e2edutch.stanza
0 ignored issues
show
Unused Code introduced by
The import e2edutch.stanza seems to be unused.
Loading history...
3
import tensorflow.compat.v1 as tf
0 ignored issues
show
introduced by
Unable to import 'tensorflow.compat.v1'
Loading history...
Unused Code introduced by
Unused tensorflow.compat.v1 imported as tf
Loading history...
introduced by
third party import "import tensorflow.compat.v1 as tf" should be placed before "import e2edutch.stanza"
Loading history...
4
5
6
def test_processor():
0 ignored issues
show
introduced by
Missing function or method docstring
Loading history...
7
    nlp = stanza.Pipeline(lang='nl', processors='tokenize,coref')
8
    text = 'Dit is een tekst.'
9
    doc = nlp(text)
0 ignored issues
show
Unused Code introduced by
The variable doc seems to be unused.
Loading history...
10
    # TODO: asserts about the doc having corefs
0 ignored issues
show
Coding Style introduced by
TODO and FIXME comments should generally be avoided.
Loading history...
11