Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Japanese Tokenizer for transformers library

License

NotificationsYou must be signed in to change notification settings

retarfi/jptranstokenizer

Repository files navigation

PythonpypiGitHub releaseLicenseTestcodecov

This is a repository for japanese tokenizer with HuggingFace library.
You can useJapaneseTransformerTokenizer liketransformers.BertJapaneseTokenizer.
issue は日本語でも大丈夫です。

Documentations

Documentations are available onreadthedoc.

Install

pip install jptranstokenizer

Quickstart

This is the example to usejptranstokenizer.JapaneseTransformerTokenizer withsentencepiece model of nlp-waseda/roberta-base-japanese and Juman++.
Before the following steps, you need toinstall pyknp and Juman++.

>>>fromjptranstokenizerimportJapaneseTransformerTokenizer>>>tokenizer=JapaneseTransformerTokenizer.from_pretrained("nlp-waseda/roberta-base-japanese")>>>tokens=tokenizer.tokenize("外国人参政権")# tokens: ['▁外国', '▁人', '▁参政', '▁権']

Note that different dependencies are required depending on the type of tokenizer you use.
See alsoQuickstart on Read the Docs

Citation

There will be another paper.Be sure to check here again when you cite.

This Implementation

@inproceedings{Suzuki-2023-nlp,  jtitle = {{異なる単語分割システムによる日本語事前学習言語モデルの性能評価}},  title = {{Performance Evaluation of Japanese Pre-trained Language Models with Different Word Segmentation Systems}},  jauthor = {鈴木, 雅弘 and 坂地, 泰紀 and 和泉, 潔},  author = {Suzuki, Masahiro and Sakaji, Hiroki and Izumi, Kiyoshi},  jbooktitle = {言語処理学会 第29回年次大会 (NLP2023)},  booktitle = {29th Annual Meeting of the Association for Natural Language Processing (NLP)},  year = {2023},  pages = {894-898}}

Related Work

About

Japanese Tokenizer for transformers library

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors2

  •  
  •  

Languages


[8]ページ先頭

©2009-2025 Movatter.jp