character span label to tokenized base label for Japanese text
Project description
noyaki
Converts character span label information to tokenized text-based label information.
Installation
$ pip install noyaki
Usage
Pass the tokenized text and label information as arguments to the convert function.
import noyaki
label_list = noyaki.convert(
['明日', 'は', '田中', 'さん', 'に', '会う'],
[[3, 5, 'PERSON']]
)
print(label_list)
# ['O', 'O', 'U-PERSON', 'O', 'O', 'O']
Note
Only Japanese is supported.
Only BILOU supports the tag format. (BIO may support in the future)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
noyaki-0.0.1-py3-none-any.whl
(3.1 kB
view hashes)