Skip to content
This repository has been archived by the owner on Feb 13, 2025. It is now read-only.

[WordSeg] Use Character instead of String in Alphabet #600

Open
texasmichelle opened this issue Jun 10, 2020 · 0 comments
Open

[WordSeg] Use Character instead of String in Alphabet #600

texasmichelle opened this issue Jun 10, 2020 · 0 comments

Comments

@texasmichelle
Copy link
Member

Currently, Alphabet's dictionary maps from String rather than Character to support tokens of length > 1 character. Using Character instead of String would work if we used special Unicode characters or enums instead of "</s>", "</w>", and "<pad>".

Since this is used in so many places in the WordSeg model, it is potentially worthwhile to make it more efficient.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant