Catalog PyPI
PACKAGE EXPLORERView in registry

acs-classifex

PyPI

A Python package for training a custom NER model using spaCy

Versions collected1
Direct dependencies1From release 0.1.0
Last observed20 Oct, 18:27 UTC

README

Version 0.1.0 documentation

acs_classifex

This package provides utilities to train and load a custom Named Entity Recognition (NER) model using spaCy.

Installation

pip install acs_classifex

Usage

from acs_classifex import train_ner, load_model

Training data format: [(text, {'entities': [(start, end, label)]})]

training_data = [ ("Apple is looking at buying U.K. startup for $1 billion", {'entities': [(0, 5, 'ORG'), (27, 31, 'GPE'), (44, 54, 'MONEY')]}), ("San Francisco is a beautiful city", {'entities': [(0, 13, 'GPE')]}) ]

Train the NER model

train_ner(training_data)

Load the trained model

nlp = loadmodel() doc = nlp("Apple is acquiring a company in London") print([(ent.text, ent.label) for ent in doc.ents])

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.1.012 Nov 20241

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
godhorus/acs_classifex

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 18:27 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:6bb8d7e781c10a926598c122cca987706721f6f1fee0289c3dc5029bc5c8ba80