Switch to unified view

a b/docs/assets/fragments/peripheral-vascular-disease-examples.md
1
=== "1"
2
    ```python
3
    text = "Un AOMI"
4
    doc = nlp(text)
5
    spans = doc.spans["peripheral_vascular_disease"]
6
7
    spans
8
    # Out: [AOMI]
9
    ```
10
11
12
13
=== "2"
14
    ```python
15
    text = "Présence d'un infarctus rénal"
16
    doc = nlp(text)
17
    spans = doc.spans["peripheral_vascular_disease"]
18
19
    spans
20
    # Out: [infarctus rénal]
21
    ```
22
23
24
25
=== "3"
26
    ```python
27
    text = "Une angiopathie cérébrale"
28
    doc = nlp(text)
29
    spans = doc.spans["peripheral_vascular_disease"]
30
31
    spans
32
    # Out: []
33
    ```
34
35
36
37
=== "4"
38
    ```python
39
    text = "Une angiopathie"
40
    doc = nlp(text)
41
    spans = doc.spans["peripheral_vascular_disease"]
42
43
    spans
44
    # Out: [angiopathie]
45
    ```
46
47
48
49
=== "5"
50
    ```python
51
    text = "Une thrombose cérébrale"
52
    doc = nlp(text)
53
    spans = doc.spans["peripheral_vascular_disease"]
54
55
    spans
56
    # Out: []
57
    ```
58
59
60
61
=== "6"
62
    ```python
63
    text = "Une thrombose des veines superficielles"
64
    doc = nlp(text)
65
    spans = doc.spans["peripheral_vascular_disease"]
66
67
    spans
68
    # Out: []
69
    ```
70
71
72
73
=== "7"
74
    ```python
75
    text = "Une thrombose"
76
    doc = nlp(text)
77
    spans = doc.spans["peripheral_vascular_disease"]
78
79
    spans
80
    # Out: [thrombose]
81
    ```
82
83
84
85
=== "8"
86
    ```python
87
    text = "Effectuer un bilan pre-trombose"
88
    doc = nlp(text)
89
    spans = doc.spans["peripheral_vascular_disease"]
90
91
    spans
92
    # Out: []
93
    ```
94
95
96
97
=== "9"
98
    ```python
99
    text = "Une ischémie des MI est remarquée."
100
    doc = nlp(text)
101
    spans = doc.spans["peripheral_vascular_disease"]
102
103
    spans
104
    # Out: [ischémie des MI]
105
106
    span = spans[0]
107
108
    span._.assigned
109
    # Out: {'peripheral': [MI]}
110
    ```
111
112
113
114
=== "10"
115
    ```python
116
    text = "Plusieurs cas d'EP"
117
    doc = nlp(text)
118
    spans = doc.spans["peripheral_vascular_disease"]
119
120
    spans
121
    # Out: [EP]
122
    ```
123
124
125
126
=== "11"
127
    ```python
128
    text = "Effectuer des cures d'EP"
129
    doc = nlp(text)
130
    spans = doc.spans["peripheral_vascular_disease"]
131
132
    spans
133
    # Out: []
134
    ```
135
136
137
138
=== "12"
139
    ```python
140
    text = "Le patient est hypertendu"
141
    doc = nlp(text)
142
    spans = doc.spans["peripheral_vascular_disease"]
143
144
    spans
145
    # Out: [hypertendu]
146
    ```
147
148
149
150
=== "13"
151
    ```python
152
    text = "Une hypertension portale"
153
    doc = nlp(text)
154
    spans = doc.spans["peripheral_vascular_disease"]
155
156
    spans
157
    # Out: []
158
    ```