Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
vmenger committed Feb 12, 2024
1 parent f15680c commit 09c7a2c
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -266,12 +266,9 @@ concepts = {

#### Concept dictionary from external source

When matching entities, it is possible to work with external lists of concepts (e.g. from a medical thesaurus such as UMLS) through the `concept_dict_creator` function. This allows you to import a csv-file with a concept & term combination on each line, with columns to set the above described options for a `Term` (e.g. attribute, proximity, fuzzy).
When matching entities, it is possible to load external lists of concepts (e.g. from a medical thesaurus such as UMLS) from `csv` through the `concept_dict_creator` function. Your `csv` should contain a combination of concept and phrase on each line, with optional columns to configure the `Term`-options described above (e.g. `attribute`, `proximity`, `fuzzy`). You may present the columns in any order, but make sure the names match the `Term` attributes, for example:

The columns to set `Term` options are optional. If you want to use them, they should come after the concept & term columns and their names should match the available `Term` attributes.

If the csv-file looks like:
| **concept** | **term** | **attr** | **proximity** | **fuzzy** | **fuzzy_min_len** | **pseudo** |
| **concept** | **phrase** | **attr** | **proximity** | **fuzzy** | **fuzzy_min_len** | **pseudo** |
|--|--|--|--|--|--|--|
| prematuriteit | prematuriteit |
| prematuriteit | <p3 | | 1 | 1 | 2 | |
Expand All @@ -280,7 +277,8 @@ If the csv-file looks like:
| veneus_infarct | veneus infarct |
| veneus_infarct | VI | TEXT |

It will result in the following concept dictionary:
Will result in the following concept dictionary:

```python
{
"prematuriteit": [
Expand Down

0 comments on commit 09c7a2c

Please sign in to comment.