Budoux.lua

December 24, 2024 · View on GitHub

Budoux is the line break organizer tool originally developed by Google Inc and licensed under Apache 2.0 LICENSE.

This is a Lua implementation of Budoux.

Requirements

Getting Started

local budoux = require("budoux")
local parser = budoux.load_japanese_model()
local segments = parser.parse('今日は天気です。')
for _, segment in ipairs(segments) do
  print(segment)
end
今日は
天気です。