MCPcopy Index your code
hub / github.com/doccano/doccano-transformer

github.com/doccano/doccano-transformer @v1.0.2

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.0.2 ↗ · + Follow
39 symbols 113 edges 8 files 3 documented · 8%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

doccano-transformer

Codacy Badge Build Status

Doccano Transformer helps you to transform an exported dataset into the format of your favorite machine learning library.

Supported formats

Doccano Transformer supports the following formats:

  • CoNLL 2003
  • spaCy

Install

To install doccano-transformer, simply use pip:

pip install doccano-transformer

Examples

Named Entity Recognition

The following formats are supported:

  • CoNLL 2003
  • spaCy
from doccano_transformer.datasets import NERDataset
from doccano_transformer.utils import read_jsonl

dataset = read_jsonl(filepath='example.jsonl', dataset=NERDataset, encoding='utf-8')
dataset.to_conll2003(tokenizer=str.split)
dataset.to_spacy(tokenizer=str.split)

Contribution

We encourage you to contribute to doccano transformer! Please check out the Contributing to doccano transformer guide for guidelines about how to proceed.

License

MIT

Core symbols most depended-on inside this repo

from_jsonl
called by 5
doccano_transformer/datasets.py
to_conll2003
called by 2
doccano_transformer/datasets.py
to_spacy
called by 2
doccano_transformer/datasets.py
get_tokens_and_token_offsets
called by 2
doccano_transformer/examples.py
from_csv
called by 1
doccano_transformer/datasets.py
is_valid
called by 1
doccano_transformer/examples.py
read_jsonl
called by 0
doccano_transformer/utils.py
read_csv
called by 0
doccano_transformer/utils.py

Shape

Method 25
Class 8
Function 6

Languages

Python100%

Modules by API surface

doccano_transformer/utils.py10 symbols
doccano_transformer/datasets.py10 symbols
doccano_transformer/examples.py9 symbols
tests/test_datasets.py6 symbols
tests/test_utils.py4 symbols

For agents

$ claude mcp add doccano-transformer \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact