-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from sociocom:bundle-dictionaries
Bundle MedDic-CANCER dictionaries with the tool
- Loading branch information
Showing
7 changed files
with
3,083 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -164,4 +164,3 @@ cython_debug/ | |
#.idea/ | ||
|
||
data/ | ||
*.csv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import os | ||
|
||
from EntityNormalizer import EntityDictionary | ||
|
||
|
||
class MedDicCancerADE(EntityDictionary): | ||
|
||
def __init__(self, source_column='出現形', target_column='[細分類]', index: bool = False): | ||
super().__init__( | ||
path=os.path.join(os.path.dirname(__file__), "resources/MedDic-CANCER-ADE-JA_202306.csv"), | ||
source_column=source_column, | ||
target_column=target_column, | ||
index=index, | ||
) | ||
|
||
|
||
class MedDicCancerDrug(EntityDictionary): | ||
|
||
def __init__(self, source_column='出現形', target_column='[細分類]', index: bool = False): | ||
super().__init__( | ||
path=os.path.join(os.path.dirname(__file__), "resources/MedDic-CANCER-DRUG-JA_202306.csv"), | ||
source_column=source_column, | ||
target_column=target_column, | ||
index=index, | ||
) |
2,543 changes: 2,543 additions & 0 deletions
2,543
EntityNormalizer/resources/MedDic-CANCER-ADE-JA_202306.csv
Large diffs are not rendered by default.
Oops, something went wrong.
463 changes: 463 additions & 0 deletions
463
EntityNormalizer/resources/MedDic-CANCER-DRUG-JA_202306.csv
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
include EntityNormalizer/resources/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters