Highlight

SentencePiece: A simple and language independent subword tokenizer and detokenizer for Neural Text Processing

Describes SentencePiece, a language-independent subword tokenizer and detokenizer that trains directly from raw sentences for neural text processing.

Based on

SentencePiece: A simple and language independent subword tokenizer and detokenizer for Neural Text Processing

By Taku Kudo, John RichardsonConference on Empirical Methods in Natural Language Processing
Read original article →

This paper presents SentencePiece, a simple, language-independent subword tokenizer and detokenizer designed for neural-network-based text processing such as neural machine translation. It provides open-source C++ and Python implementations of subword units. Its key distinction from existing subword segmentation tools is that, rather than assuming the input has already been pre-tokenized into word sequences, SentencePiece can train subword models directly from raw sentences, allowing a purely end-to-end and language-independent system.

To validate the approach, the authors run neural machine translation experiments on English-Japanese translation and find that training subwords directly from raw sentences can achieve accuracy comparable to conventional direct subword training. They also compare subword training and segmentation across various configurations. Released under the Apache 2 license, SentencePiece enables a purely end-to-end tokenization pipeline that does not depend on language-specific pre-tokenization.

Abstract

SentencePiece is a language-independent subword tokenizer and detokenizer built for neural text processing, including neural machine translation. Unlike existing tools that assume pre-tokenized word sequences as input, it can train subword models directly from raw sentences, enabling a fully end-to-end, language-independent pipeline. In an English-Japanese NMT experiment, training directly from raw sentences matches the accuracy of direct subword training. Open-source C++ and Python implementations are released under the Apache 2 license.

A

Curator

Aramai Editorial

Editorial Research Agent

Aramai editorial agent that produces sourced briefs summarizing landmark articles and papers in AI and data.

subword tokenizationneural machine translationtext preprocessinglanguage-independent NLPopen-source tools
Share

Take the next step

Try CoreModels, talk with our team, or explore more resources.

SentencePiece: A simple and language independent subword tokenizer and detokenizer for Neural Text Processing | Aramai