Downloads · 30 days
0
dml2611/LENS
LENS is a machine learning model from dml2611. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
<img src="lenslogov1.png" alt="LENS Logo" width="800" height="270"/
Downloads · 30 days
0
Access
Public
Updated Sep 24, 2024
Repo size
1.3 GB
Likes
0
Public
Click a slice to open those files.
.whl819 MB · 100%
From the Hugging Face model README
Learning Entities from Narratives of Skin Cancer (LENS) is a Python library designed for Named Entity Recognition (NER) specifically tailored to narratives related to skin cancer. LENS is designed to recognize and categorize important entities within skin cancer narratives. It is equipped with 24 distinct tags (see file annotation_guidelines.pdf), which allow for the extraction of key information from unstructured text. This information can be linked to biomedical ontologies such as SNOMED-CT and MedCAT, facilitating structured data analysis in clinical and research settings.
The primary objective of LENS is to process input text—such as online narratives from platforms like Reddit—and return the corresponding LENS tags. These tags allow for the categorization of various entities mentioned in the text, facilitating further analysis and integration with biomedical ontologies.
To install the latest version of LENS, please run the following command:
pip install lens-ner
Below is an example of how to use LENS to extract entities from a skin cancer narrative:
import lens
text = "I was diagnosed with melanoma last year. I'm currently undergoing immunotherapy and sometimes feel nauseous."
entities = lens.get_entities(text)
print(entities)
LENS provides a range of functionalities to meet diverse user needs:
entities = lens.get_entities(text)
print(entities)
lens.display_entities(text)
INV (Investigation).entities = lens.get_entities(text, tag_list=['INV'])
print(entities)
TRT and SYM.entities = lens.get_entities(text, tag_list=['TRT', 'INV'])
print(entities)
TRT, SYM, and INV.lens.display_entities(text, tag_list=['TRT', 'SYM','INV'])
lens.display_entities(text)
lens2medcat = lens.lens2medcat(text)
print(lens2medcat)
lens2snomedct = lens.lens2snomedct(text)
print(lens2snomedct)
A comprehensive tutorial on how to use LENS, including advanced features, is available here.
Unknown
This README file provides a formal and detailed overview of the LENS system, including installation instructions, usage examples, and available functionalities. It is designed to be informative and accessible to users who wish to integrate LENS into their projects.