---
title: "fromSentencepiece"
sidebar_label: "fromSentencepiece"
description: "Kotlin binding reference: fromSentencepiece."
---

<!-- Generated by tools/api_reference/generate_api_docs.py. Do not edit. -->

//[clika-runtime](../../../../index.md)/[io.clika.runtime](../../index.md)/[Tokenizer](../index.md)/[Companion](index.md)/[fromSentencepiece](fromSentencepiece.md)

# fromSentencepiece

[common]\
fun [fromSentencepiece](fromSentencepiece.md)(path: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)): [Tokenizer](../index.md)

Load a bare SentencePiece model file: the pieces keep their own ids, nothing frames a sequence.