Skip to main content

Domain-specific Natural Language Processing with LeafNLP

Project description

LeafNLP - A package for domain specific natural language processing

This repository contains pipes and models of LeafNLP.

Installation

Just simply run

pip install leafnlp

to install LeafNLP.

Usage

from leafnlp.NER.BERT import ModelNER

ner_model = ModelNER(model_param="model_ner_bert_conll2003")

input_text = [{"text": "The storm hits New York."}]
output = ner_model.annotate(input_text)

Available Models

PL Task Model model_param Note
NER NER BERT model_ner_bert_conll2003
NER ED BERT model_ed_bert_maven2020
  • NER: Named Entity Recogonition.
  • ED: Event Detection.

Citation

If you use LeafNLP in your research, please cite

Will be here.

Acknowledgements

LeafNLP is maintained by the Leaf-AI-LAB at Stevens Institute of Technology.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

leafnlp-0.0.9.tar.gz (13.2 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page