Skip to content

Commit

Permalink
docs: add converters reference links
Browse files Browse the repository at this point in the history
  • Loading branch information
percevalw committed Nov 9, 2024
1 parent f2247ff commit 6c0ba08
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
10 changes: 5 additions & 5 deletions docs/data/converters.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,14 +119,14 @@ Therefore, a complete OMOP-style document would look like this:
}
```

### Converting OMOP data to Doc objects
### Converting OMOP data to Doc objects {: #edsnlp.data.converters.OmopDict2DocConverter }

::: edsnlp.data.converters.OmopDict2DocConverter
options:
heading_level: 4
show_source: false

### Converting Doc objects to OMOP data
### Converting Doc objects to OMOP data {: #edsnlp.data.converters.OmopDoc2DictConverter }

::: edsnlp.data.converters.OmopDoc2DictConverter
options:
Expand Down Expand Up @@ -160,14 +160,14 @@ the annotations should be stored in a JSON-like schema. We use the following sch
}
```

### Converting Standoff data to Doc objects
### Converting Standoff data to Doc objects {: #edsnlp.data.converters.StandoffDict2DocConverter }

::: edsnlp.data.converters.StandoffDict2DocConverter
options:
heading_level: 4
show_source: false

### Converting Doc objects to Standoff data
### Converting Doc objects to Standoff data {: #edsnlp.data.converters.StandoffDoc2DictConverter }

::: edsnlp.data.converters.StandoffDoc2DictConverter
options:
Expand All @@ -176,7 +176,7 @@ the annotations should be stored in a JSON-like schema. We use the following sch



## Entities (`converter="ents"`) {: #ents }
## Entities (`converter="ents"`) {: #edsnlp.data.converters.EntsDoc2DictConverter }

We also provide a simple one-way (export) converter to convert Doc into a list of dictionaries,
one per entity, that can be used to write to a dataframe. The schema of each produced row is the following:
Expand Down
11 changes: 6 additions & 5 deletions docs/data/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@ At the moment, we support the following data sources:

and the following schemas:

| Schema | Snippet |
|:-----------------------------------|------------------------|
| [Custom](./converters/#custom) | `converter=custom_fn` |
| [OMOP](./converters/#omop) | `converter="omop"` |
| [Standoff](./converters/#standoff) | `converter="standoff"` |
| Schema | Snippet |
|:---------------------------------------------------------------------------|------------------------|
| [Custom](./converters/#custom) | `converter=custom_fn` |
| [OMOP](./converters/#omop) | `converter="omop"` |
| [Standoff](./converters/#standoff) | `converter="standoff"` |
| [Ents](./converters/#edsnlp.data.converters.EntsDoc2DictConverter) | `converter="ents"` |

0 comments on commit 6c0ba08

Please sign in to comment.