Metadata-Version: 2.1
Name: hc-nlp
Version: 0.3.1
Summary: Heritage Connector NLP
Home-page: https://github.com/TheScienceMuseum/heritage-connector-nlp
Author: Science Museum Group
License: UNKNOWN
Download-URL: https://github.com/TheScienceMuseum/heritage-connector-nlp/archive/v0.3.0.tar.gz
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Requires-Dist: spacy-nightly (==3.0.0rc2)
Requires-Dist: spacy-transformers (==1.0.0rc0)

# heritage-connector-nlp

Text processing for the [Heritage Connector](https://github.com/TheScienceMuseum/heritage-connector): a set of NLP utilities for the Heritage sector.

**--- IN DEVELOPMENT ---**

(note about spaCy: the master branch and all releases after 0.2.1 use spaCy v3, which is currently in nightly and not meant for production use.)

Includes:

- information extraction (NER, NEL, relation classification)
- labelling ([Label Studio](https://labelstud.io/))
- test suite for models

## Usage

### Label Studio

**Setting up (first time):**

1. Run `label-studio start labelling --init`, which will start up Label Studio and take you to a configuration wizard. 
2. Select *Named Entity Recognition* from the top menu, and fill in the entity types you want to annotate

**Running:** Run `label-studio start labelling` from the root directory.

**Useful parameters:**

- `--sampling=uniform`: have Label Studio show documents in a random order
- `--label-config label_studio_config_sample.xml`: load config from a file


