Skip to main content

Enity Recognition using ScikitCRF

Project description



Entity recognition using scikit CRF

Decscription

This is a simple python applicaion that uses sklearn-crfsuite for entity recognition using CRF.

Installation

Install this package using pip by running the follwing command:

pip install scikitcrf_ner

Usage

  • import the package using:

    from scikitcrf_ner import entityRecognition
    
  • Train the model using:

    entityRecognition.train("path\\to\\trainingfile.json")
    
  • Refer the sample training file(sample_train.json), the training file should be json formatted

  • Predict the entities by:

    entityRecognition.predict("Utterance")
    

Sample code

Refer this sample code:

from scikitcrf_ner import entityRecognition as ner
ner.train("sample_train.json")
entities = ner.predict("show me some Indian restaurants")
print(entites)

License

  • MIT

Project details


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
scikitcrf_ner-3.2.tar.gz (3.3 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page