Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Python library for custom entity recognition using Sklearn CRF

License

NotificationsYou must be signed in to change notification settings

ManikandanThangavelu/scikitcrf_NER

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Decscription

This is a simple python applicaion that usessklearn-crfsuite for entity recognition usingCRF.

Installation

Install this package using pip by running the follwing command

pip install scikitcrf_ner

if you face any issues while installing sklearn_crfsuiteThis may help

Make sure you download spacy english model using

python -m spacy download en

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 formattedPredict the entities by

entityRecognition.predict("Utterance")

Sample code

Refer this sample code:

fromscikitcrf_nerimportentityRecognitionasnerner.train("sample_train.json")entities=ner.predict("show me some Indian restaurants")print(entites)

License

MIT

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp