|
a |
|
b/docs/assets/fragments/connective-tissue-disease-examples.md |
|
|
1 |
=== "1" |
|
|
2 |
```python |
|
|
3 |
text = "Présence d'une sclérodermie." |
|
|
4 |
doc = nlp(text) |
|
|
5 |
spans = doc.spans["connective_tissue_disease"] |
|
|
6 |
|
|
|
7 |
spans |
|
|
8 |
# Out: [sclérodermie] |
|
|
9 |
``` |
|
|
10 |
|
|
|
11 |
|
|
|
12 |
|
|
|
13 |
=== "2" |
|
|
14 |
```python |
|
|
15 |
text = "Patient atteint d'un lupus." |
|
|
16 |
doc = nlp(text) |
|
|
17 |
spans = doc.spans["connective_tissue_disease"] |
|
|
18 |
|
|
|
19 |
spans |
|
|
20 |
# Out: [lupus] |
|
|
21 |
``` |
|
|
22 |
|
|
|
23 |
|
|
|
24 |
|
|
|
25 |
=== "3" |
|
|
26 |
```python |
|
|
27 |
text = "Présence d'anticoagulants lupiques," |
|
|
28 |
doc = nlp(text) |
|
|
29 |
spans = doc.spans["connective_tissue_disease"] |
|
|
30 |
|
|
|
31 |
spans |
|
|
32 |
# Out: [] |
|
|
33 |
``` |
|
|
34 |
|
|
|
35 |
|
|
|
36 |
|
|
|
37 |
=== "4" |
|
|
38 |
```python |
|
|
39 |
text = "Il y a une MICI." |
|
|
40 |
doc = nlp(text) |
|
|
41 |
spans = doc.spans["connective_tissue_disease"] |
|
|
42 |
|
|
|
43 |
spans |
|
|
44 |
# Out: [MICI] |
|
|
45 |
``` |
|
|
46 |
|
|
|
47 |
|
|
|
48 |
|
|
|
49 |
=== "5" |
|
|
50 |
```python |
|
|
51 |
text = "Syndrome de Raynaud" |
|
|
52 |
doc = nlp(text) |
|
|
53 |
spans = doc.spans["connective_tissue_disease"] |
|
|
54 |
|
|
|
55 |
spans |
|
|
56 |
# Out: [Raynaud] |
|
|
57 |
``` |