Project

reina

0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Reina.rb is a toolset for Apertium written in Ruby
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

= 0.0.8
 Project Readme

reinarb

A toolset for Apertium written in Ruby

Usage

Example

Stream parser

require "reina/stream_parser.rb"
require "pp"

txt = <<TXT
^ให้การ/ให้การ<vblex><x><y>$ ^ฝึกฝน/ฝึกฝน<vblex>$
TXT

parser = Reina::StreamParser.new
PP.pp parser.parse(txt)

Expanded dix loader

# -*- coding: utf-8 -*-
require "reina/ldix_loader.rb"
require "pp"
require "stringio"

ldix = <<DIXEOF
กำลัง:กำลัง<vblex>
สนิท:สนิท<adj>
DIXEOF

file = StringIO.new(ldix)

PP.pp Reina::LdixLoader.load(file)