Switch to unified view

a b/docs/assets/fragments/diabetes-examples.md
1
=== "1"
2
    ```python
3
    text = "Présence d'un DT2"
4
    doc = nlp(text)
5
    spans = doc.spans["diabetes"]
6
7
    spans
8
    # Out: [DT2]
9
    ```
10
11
12
13
=== "2"
14
    ```python
15
    text = "Présence d'un DNID"
16
    doc = nlp(text)
17
    spans = doc.spans["diabetes"]
18
19
    spans
20
    # Out: [DNID]
21
    ```
22
23
24
25
=== "3"
26
    ```python
27
    text = "Patient diabétique"
28
    doc = nlp(text)
29
    spans = doc.spans["diabetes"]
30
31
    spans
32
    # Out: [diabétique]
33
    ```
34
35
36
37
=== "4"
38
    ```python
39
    text = "Un diabète insipide"
40
    doc = nlp(text)
41
    spans = doc.spans["diabetes"]
42
43
    spans
44
    # Out: []
45
    ```
46
47
48
49
=== "5"
50
    ```python
51
    text = "Atteinte neurologique d'origine diabétique"
52
    doc = nlp(text)
53
    spans = doc.spans["diabetes"]
54
55
    spans
56
    # Out: [origine diabétique]
57
58
    span = spans[0]
59
60
    span._.detailed_status
61
    # Out: WITH_COMPLICATION
62
63
    span._.assigned
64
    # Out: {'complicated_before': [origine]}
65
    ```
66
67
68
69
=== "6"
70
    ```python
71
    text = "Une rétinopathie diabétique"
72
    doc = nlp(text)
73
    spans = doc.spans["diabetes"]
74
75
    spans
76
    # Out: [rétinopathie diabétique]
77
78
    span = spans[0]
79
80
    span._.detailed_status
81
    # Out: WITH_COMPLICATION
82
83
    span._.assigned
84
    # Out: {'complicated_before': [rétinopathie]}
85
    ```
86
87
88
89
=== "7"
90
    ```python
91
    text = "Il y a un mal perforant plantaire"
92
    doc = nlp(text)
93
    spans = doc.spans["diabetes"]
94
95
    spans
96
    # Out: [mal perforant plantaire]
97
98
    span = spans[0]
99
100
    span._.detailed_status
101
    # Out: WITH_COMPLICATION
102
    ```