a b/docs/assets/fragments/dementia-examples.md
1
=== "1"
2
    ```python
3
    text = "D'importants déficits cognitifs"
4
    doc = nlp(text)
5
    spans = doc.spans["dementia"]
6
7
    spans
8
    # Out: [déficits cognitifs]
9
    ```
10
11
12
13
=== "2"
14
    ```python
15
    text = "Patient atteint de démence"
16
    doc = nlp(text)
17
    spans = doc.spans["dementia"]
18
19
    spans
20
    # Out: [démence]
21
    ```
22
23
24
25
=== "3"
26
    ```python
27
    text = "On retrouve des anti-SLA"
28
    doc = nlp(text)
29
    spans = doc.spans["dementia"]
30
31
    spans
32
    # Out: []
33
    ```
34
35
36
37
=== "4"
38
    ```python
39
    text = "Une maladie de Charcot"
40
    doc = nlp(text)
41
    spans = doc.spans["dementia"]
42
43
    spans
44
    # Out: [maladie de Charcot]
45
    ```