[ca4dac]: / resources / bioner.yml

Download this file

37 lines (30 with data), 1.1 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#@meta {desc: 'configure the SciSpacy BioNLP parser', date: '2024-04-06'}
#@meta {doc: 'A spaCy NER model trained on the BIONLP13CG corpus.'}
#@meta {url: 'https://allenai.github.io/scispacy/'}
## Natural language
#
# use the biomedical NER
mednlp_biomed_doc_parser:
model_name: en_ner_bionlp13cg_md
# configure the model for download
medcat_resource:
auto_install_models:
- ${mednlp_biomed_doc_parser:model_name}
## Vectorization
#
medent_spacy_feature_vectorizer:
class_name: zensols.deepnlp.vectorize.spacy.SpacyFeatureVectorizer
feature_id: medent
description: medical named entity recognition
torch_config: 'instance: gpu_torch_config'
model: >-
call({'param': {'attribute': 'model'}}): mednlp_biomed_doc_parser
symbols: ner
# uncomment to add the vectorizer to the default configuration in `vectorizer.conf`
# language_vectorizer_manager:
# configured_spacy_vectorizers: >-
# instance: tuple:
# ner_spacy_feature_vectorizer,
# dep_spacy_feature_vectorizer,
# pos_spacy_feature_vectorizer,
# medent_spacy_feature_vectorizer