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

AllenNLP integration for Shiba: Japanese CANINE model

License

NotificationsYou must be signed in to change notification settings

shunk031/allennlp-shiba-model

Repository files navigation

CIReleasePythonPyPI

allennlp-shiab-model is a Python library that provides AllenNLP integration forshiba-model.

SHIBA is an approximate reimplementation of CANINE[1] in raw Pytorch, pretrained on the Japanese wikipedia corpus using random span masking. If you are unfamiliar with CANINE, you can think of it as a very efficient (approximately 4x as efficient) character-level BERT model. Of course, the name SHIBA comes from the identically named Japanese canine.

Installation

Installing the library and dependencies is simple usingpip.

pip install allennlp-shiba

Example

This library enables users to specify the in a jsonnet config file. Here is an example of the model in jsonnet config file:

{"dataset_reader": {"tokenizer": {"type":"shiba",        },"token_indexers": {"tokens": {"type":"shiba",            }        },    },"model": {"shiba_embedder": {"type":"basic","token_embedders": {"shiba": {"type":"shiba","eval_model":true,                }            }        }    }}

Reference

About

AllenNLP integration for Shiba: Japanese CANINE model

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp