[cad161]: / tests / pipelines / ner / disorders / tobacco.py

Download this file

48 lines (47 with data), 846 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
results_tobacco = dict(
has_match=[
True,
True,
False,
True,
True,
True,
True,
True,
True,
],
detailled_status=[
None,
None,
None,
"ABSTINENCE",
None,
None,
"ABSTINENCE",
None,
None,
],
negation=[
None,
None,
None,
None,
True,
True,
None,
True,
True,
],
assign=[{"PA": 15}] + 8 * [None],
texts=[
"Tabagisme évalué à 15 PA",
"Patient tabagique",
"Tabagisme festif",
"On a un tabagisme ancien",
"Tabac: 0",
"Tabagisme passif",
"Tabac: sevré depuis 5 ans",
"Le patient ne fume aucun truc.",
"Le patient fume 0 PA.",
],
)