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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

leafnlp-0.0.17-py3-none-any.whl (46.2 kB view details)

Uploaded Python 3

File details

Details for the file leafnlp-0.0.17-py3-none-any.whl.

File metadata

  • Download URL: leafnlp-0.0.17-py3-none-any.whl
  • Upload date:
  • Size: 46.2 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for leafnlp-0.0.17-py3-none-any.whl
Algorithm Hash digest
SHA256 dcb0e32c4ede39c8570f9ae6bf537ee407c0cf6657377ee4a471eeef6d527e66
MD5 e7fdd4a4a60c94f6920dd444755886a2
BLAKE2b-256 8550c7d201a72a8633c0b27c45438808cef7830b099c6e58c9608c5e12329568

See more details on using hashes here.

Supported by

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