mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
cc477be952
* Remove previous alignment * Implement better alignment, using ragged data structure * Use pytokenizations for alignment * Fixes * Fixes * Fix overlapping entities in alignment * Fix align split_sents * Update test * Commit align.py * Try to appease setuptools * Fix flake8 * use realistic entities for testing * Update tests for better alignment * Improve alignment heuristic Co-authored-by: svlandeg <sofie.vanlandeghem@gmail.com>
12 lines
364 B
Python
12 lines
364 B
Python
from .corpus import Corpus
|
|
from .example import Example
|
|
from .align import Alignment
|
|
|
|
from .iob_utils import iob_to_biluo, biluo_to_iob
|
|
from .iob_utils import biluo_tags_from_offsets, offsets_from_biluo_tags
|
|
from .iob_utils import spans_from_biluo_tags
|
|
from .iob_utils import tags_to_entities
|
|
|
|
from .gold_io import docs_to_json
|
|
from .gold_io import read_json_file
|