Quick start: Module nel
¶
The module nel
provides simple rule-based named entity linker for accepted NFDI consortia. Let’s import the module and text for test:
from nfdi.nel import linker, test
print(test)
What are BERD@NFDI, NFDI4Earth, NFDI4DataScience, NFDI-MatWerk, PUNCH4NFDI, FAIRmat and Text+? How are they related to NFDI4Ing, NFDI4Culture, NFDI4Chem and NFDIGHGA?
t = linker(test)
t.render()
What are
BERD@NFDI
ORG
Q108542181
,
NFDI4Earth
ORG
Q108542504
,
NFDI4DataScience
ORG
Q108542422
,
NFDI-MatWerk
ORG
Q108542607
,
PUNCH4NFDI
ORG
Q108542637
,
FAIRmat
ORG
Q108542373
and
Text+
ORG
Q98271443
? How are they related to
NFDI4Ing
ORG
Q98380344
,
NFDI4Culture
ORG
Q98276929
,
NFDI4Chem
ORG
Q96678459
and
NFDIGHGA
ORG
Q98380337
?
for span in t.doc.ents:
print((span.text, span.ent_id_, span.label_))
('BERD@NFDI', 'Q108542181', 'ORG')
('NFDI4Earth', 'Q108542504', 'ORG')
('NFDI4DataScience', 'Q108542422', 'ORG')
('NFDI-MatWerk', 'Q108542607', 'ORG')
('PUNCH4NFDI', 'Q108542637', 'ORG')
('FAIRmat', 'Q108542373', 'ORG')
('Text+', 'Q98271443', 'ORG')
('NFDI4Ing', 'Q98380344', 'ORG')
('NFDI4Culture', 'Q98276929', 'ORG')
('NFDI4Chem', 'Q96678459', 'ORG')
('NFDIGHGA', 'Q98380337', 'ORG')