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 codes for LeafNLP.

Installation

Use pip to install LeafNLP. Run:

pip install leafnlp

Usage


from leafnlp.nlp.named_entity_recogonition.bert import modelNER
from pprint import pprint

model = modelNER()
input_text = [{"text": "The storm hits New York."}]
input_text = ["The storm arrived at New York."]

results = model.annotate(input_text)
results = model.annotate_raw_dump(input_text, top_n=10)

Available Models

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

Acknowledgements

LeafNLP is maintained by the LeafNLP Team.

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.15.tar.gz (16.9 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