Skip to main content

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.

Metadata

Release files for leafnlp 0.0.17

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for leafnlp 0.0.17
File Interpreter ABI Platform
leafnlp-0.0.17-py3-none-any.whl Python 3 none any Details

Release files / leafnlp-0.0.17-py3-none-any.whl

Download URL leafnlp-0.0.17-py3-none-any.whl
Size 46.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dcb0e32c4ede39c8570f9ae6bf537ee407c0cf6657377ee4a471eeef6d527e66
BLAKE2b-256 checksum
How to use checksums
8550c7d201a72a8633c0b27c45438808cef7830b099c6e58c9608c5e12329568
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.10.1 pkginfo/1.7.1 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.10

Release history Release notifications | RSS feed

This release

0.0.17 This release

1 release file

0.0.16

1 release file

0.0.15

1 release file

0.0.10

1 release file

0.0.9

1 release file

0.0.8

1 release file

0.0.7

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page