Code Monkey home page Code Monkey logo

spacy-ecfr-ner's Introduction

๐Ÿช spaCy Project: NER Citations of ECFR Banking Regulation in a spaCy pipeline.

Custom NER project for spaCy v3 adapted from the spaCy v3 ner_demo example script for creating an NER component in a new pipeline.

๐Ÿ“‹ project.yml

The project.yml defines the data assets required by the project, as well as the available commands and workflows. For details, see the spaCy projects documentation.

โฏ Commands

The following commands are defined by the project. They can be executed using spacy project run [name]. Commands are only re-run if their inputs have changed.

Command Description
download Download a spaCy model with pretrained vectors
data-to-spacy Merge your annotations and create data in spaCy's binary format
data-to-asset-senter Export senter annotations to assets
train-curve-ner Train curve for NER
data-to-asset-ner Export NER annotations to assets
train Train pipeline models
evaluate Evaluate the model and export metrics
prodigy-al-ner NER prodigy active learning annotaitons
prodigy-manual-ner NER prodigy manual learning annotations
package Package the trained model as a pip package
visualize-model Visualize the model's output interactively using Streamlit
setup Install dependencies
clean Remove intermediate files
document Export README for project details

โญ Workflows

The following workflows are defined by the project. They can be executed using spacy project run [name] and will run the specified commands in order. Commands are only re-run if their inputs have changed.

Workflow Steps
all download โ†’ train โ†’ evaluate โ†’ package

๐Ÿ—‚ Assets

The following assets are defined by the project. They can be fetched by running spacy project assets in the project directory.

File Source Description
assets/ecfr_ner_labels.jsonl Local 400 initial NER labels of sections, cites, and laws
assets/patterns.jsonl Local Patterns for sections, cites, and laws for initial NER training
assets/ecfr_senter_labels.jsonl Local 150 initial sentence segmentations of eCFR sub-sections
assets/raw-files/ecfr-sample-sents.jsonl Local Sample of Prodigy annotated sentences from ecfr-sample-title-12.jsonl file
assets/raw-files/ecfr-sample-title-12.jsonl Local Sample of 47 records (sub-sections) from ecfr-title-12.jsonl
assets/raw-files/ecfr-title-12.jsonl Local eCFR Title 12 (Banking) parsed as a jsonl file
assets/raw-files/ecfr-title-12-sent.jsonl Local Senter scored model segmenting ecfr-title-12.jsonl

spacy-ecfr-ner's People

Watchers

 avatar  avatar

Forkers

kabyleai

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.