SciKits

Quick search

scikitcrf-ner

version 3.2

Enity Recognition using ScikitCRF

Download: https://pypi.python.org/pypi/scikitcrf-ner
Homepage: https://github.com/manikandan-velu/scikitcrf_NER
PyPI: http://pypi.python.org/pypi/scikitcrf-ner
People: Manikandan Thangavelu

Description

\xef\xbb\xbf
====================================
Entity recognition using scikit CRF
====================================

^^^^^^^^^^^^^
Decscription
^^^^^^^^^^^^^

This is a simple python applicaion that uses `sklearn-crfsuite <https://sklearn-crfsuite.readthedocs.io/en/latest/>`_ for entity recognition using ``CRF``.

^^^^^^^^^^^^^
Installation
^^^^^^^^^^^^^

Install this package using pip by running the follwing command::

\tpip install scikitcrf_ner

^^^^^^
Usage
^^^^^^

* import the package using::

\tfrom scikitcrf_ner import entityRecognition
* Train the model using::

\tentityRecognition.train(\"path\\\\to\\\\trainingfile.json\")
* Refer the sample training file(``sample_train.json``), the training file should be json formatted
* Predict the entities by::

\tentityRecognition.predict(\"Utterance\")

^^^^^^^^^^^^
Sample code
^^^^^^^^^^^^

Refer this sample code::

\tfrom scikitcrf_ner import entityRecognition as ner
\tner.train(\"sample_train.json\")
\tentities = ner.predict(\"show me some Indian restaurants\")
\tprint(entites)

^^^^^^^^
License
^^^^^^^^
* ``MIT``

Installation

PyPI

You can download the latest distribution from PyPI here: http://pypi.python.org/pypi/scikitcrf-ner

Using pip

You can install scikitcrf-ner for yourself from the terminal by running:

pip install --user scikitcrf-ner

If you want to install it for all users on your machine, do:

pip install scikitcrf-ner
On Linux, do sudo pip install scikitcrf-ner.

If you don't yet have the pip tool, you can get it following these instructions.

This package was discovered in PyPI.