arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1808.06226cs.CL
收藏

SentencePiece:一个简单且与语言无关的用于神经文本处理的子词分词器和去分词器

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

Google, Inc.(谷歌公司)

Taku Kudo, John Richardson

摘要:

本文介绍了SentencePiece,一个独立于语言的子词分词器和去分词器,设计用于基于神经的文本处理,包括神经机器翻译。它为子字单元提供了开源的C++和Python实现。虽然现有的子词切分工具假设输入被预先标记为单词序列,但SentencePiece可以直接从原始句子中训练子词模型,这使我们能够制作一个纯粹的端到端和语言独立的系统。我们在英日机器翻译上进行了NMT的验证实验,发现它可以达到与直接从原始句子中训练子词相当的准确性。我们还比较了各种配置的子词训练和分割的性能。SentencePiece在Apache 2许可证下可用,网址为https://github.com/google/sentencepiece。

英文摘要:

This paper describes SentencePiece, a language-independent subword tokenizer and detokenizer designed for Neural-based text processing, including Neural Machine Translation. It provides open-source C++ and Python implementations for subword units. While existing subword segmentation tools assume that the input is pre-tokenized into word sequences, SentencePiece can train subword models directly from raw sentences, which allows us to make a purely end-to-end and language independent system. We perform a validation experiment of NMT on English-Japanese machine translation, and find that it is possible to achieve comparable accuracy to direct subword training from raw sentences. We also compare the performance of subword training and segmentation with various configurations. SentencePiece is available under the Apache 2 license at https://github.com/google/sentencepiece.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑