Skip to content

Decouple NER tag vocab from torchtext and add conversion CLI#11

Open
codex-corp wants to merge 1 commit intoSinaLab:mainfrom
labeeb-io:ner-hotfix
Open

Decouple NER tag vocab from torchtext and add conversion CLI#11
codex-corp wants to merge 1 commit intoSinaLab:mainfrom
labeeb-io:ner-hotfix

Conversation

@codex-corp
Copy link

Ref: #10

Solution: #10 (comment)

  • add sinatools/ner/tag_vocab.py with shims that load legacy torchtext pickles and re‑serialize them into the native Vocab class (lazy-imported to avoid circular deps)

  • switch sinatools/ner/init.py and helpers.py to use the new loader so the runtime works without torchtext

  • expose a convert_tag_vocab console script (and register it in setup.py) to rewrite checkpoints in place for updated environments

Ref: SinaLab#10

- add sinatools/ner/tag_vocab.py with shims that load legacy torchtext pickles and re‑serialize them into the native Vocab class (lazy-imported to avoid circular deps)

- switch sinatools/ner/__init__.py and helpers.py to use the new loader so the runtime works without torchtext

- expose a convert_tag_vocab console script (and register it in setup.py) to rewrite checkpoints in place for updated environments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant