Merge pull request #6322 from medspacy/master

This commit is contained in:
Ines Montani 2020-11-10 02:47:29 +01:00 committed by GitHub
commit 4d337eedf2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 30 additions and 1 deletions

View File

@ -2536,7 +2536,7 @@
"import cov_bsv", "import cov_bsv",
"", "",
"nlp = cov_bsv.load()", "nlp = cov_bsv.load()",
"text = 'Pt tested for COVID-19. His wife was recently diagnosed with novel coronavirus. SARS-COV-2: Detected'", "doc = nlp('Pt tested for COVID-19. His wife was recently diagnosed with novel coronavirus. SARS-COV-2: Detected')",
"", "",
"print(doc.ents)", "print(doc.ents)",
"print(doc._.cov_classification)", "print(doc._.cov_classification)",
@ -2548,6 +2548,35 @@
"author_links": { "author_links": {
"github": "abchapman93" "github": "abchapman93"
} }
},
{
"id": "medspacy",
"title": "medspaCy",
"thumb": "https://raw.githubusercontent.com/medspacy/medspacy/master/images/medspacy_logo.png",
"slogan": "A toolkit for clinical NLP with spaCy.",
"github": "medspacy/medspacy",
"description": "A toolkit for clinical NLP with spaCy. Features include sentence splitting, section detection, and asserting negation, family history, and uncertainty.",
"pip": "medspacy",
"code_example": [
"import medspacy",
"from medspacy.ner import TargetRule",
"",
"nlp = medspacy.load()",
"print(nlp.pipe_names)",
"",
"nlp.get_pipe('target_matcher').add([TargetRule('stroke', 'CONDITION'), TargetRule('diabetes', 'CONDITION'), TargetRule('pna', 'CONDITION')])",
"doc = nlp('Patient has hx of stroke. Mother diagnosed with diabetes. No evidence of pna.')",
"",
"for ent in doc.ents:",
" print(ent, ent._.is_negated, ent._.is_family, ent._.is_historical)",
"medspacy.visualization.visualize_ent(doc)"
],
"category": ["biomedical", "scientific", "research"],
"tags": ["clinical"],
"author": "medspacy",
"author_links": {
"github": "medspacy"
}
}, },
{ {
"id": "rita-dsl", "id": "rita-dsl",