← All docs

Usage with Secryst

Secryst is the Ruby runtime for Interscript’s neural models:

gem install secryst

For details, see the repository.

Using it standalone

After installing, load any published model by id:

require "secryst"

model = Secryst::Model.load("ara-diac-small-2.1-int8")
model.translate("قوله فحكمها في الوفاة")

The model is downloaded once, verified against its checksum, and cached under ~/.cache/secryst. The list of published models is in models.yaml.

Integration with Ruby applications

Add the gem to your Gemfile:

source "https://rubygems.org"

gem "secryst"

Load models where they are needed. Model.load resolves, verifies, and caches on first use; there is no separate configuration file.

Usage inside maps

A transliteration map can run a neural model as a step:

stage {
  # ... sub "a", "b" ...
  secryst model: "model-name"
  # ... sub "c", "d" ...
}

A map that declares a secryst step requires the gem; maps without neural steps work unchanged.