Switch to unified view

a b/docs/assets/fragments/liver-disease-examples.md
1
=== "1"
2
    ```python
3
    text = "Il y a une fibrose hépatique"
4
    doc = nlp(text)
5
    spans = doc.spans["liver_disease"]
6
7
    spans
8
    # Out: [fibrose hépatique]
9
    ```
10
11
12
13
=== "2"
14
    ```python
15
    text = "Une hépatite B chronique"
16
    doc = nlp(text)
17
    spans = doc.spans["liver_disease"]
18
19
    spans
20
    # Out: [hépatite B chronique]
21
    ```
22
23
24
25
=== "3"
26
    ```python
27
    text = "Le patient consulte pour une cirrhose"
28
    doc = nlp(text)
29
    spans = doc.spans["liver_disease"]
30
31
    spans
32
    # Out: [cirrhose]
33
34
    span = spans[0]
35
36
    span._.detailed_status
37
    # Out: MODERATE_TO_SEVERE
38
    ```
39
40
41
42
=== "4"
43
    ```python
44
    text = "Greffe hépatique."
45
    doc = nlp(text)
46
    spans = doc.spans["liver_disease"]
47
48
    spans
49
    # Out: [Greffe hépatique]
50
51
    span = spans[0]
52
53
    span._.detailed_status
54
    # Out: MODERATE_TO_SEVERE
55
    ```