Skip to content

Commit a8fe0c4

Browse files
authored
Merge pull request #182 from interscript/install-commands-sweep
docs: correct every remaining install command
2 parents 576a51c + fe3ae66 commit a8fe0c4

4 files changed

Lines changed: 32 additions & 19 deletions

File tree

Lines changed: 28 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,48 @@
11
= Usage with Secryst
22

3-
Secryst is a seq2seq transformer suited for transliteration. Written in Ruby.
4-
It's installation is a bit tricky, you should consult its own installation guide
5-
(https://github.com/secryst/secryst[at GitHub]). By default we don't use Secryst,
6-
unless you have installed it.
3+
Secryst is the Ruby runtime for Interscript's neural models:
74

8-
== Using it standalone
5+
[source,ruby]
6+
----
7+
gem install secryst
8+
----
99

10-
It's enough to install it. Be sure to consult the guide above.
10+
For details, see the https://github.com/secryst/secryst[repository].
1111

12-
== Integration with Ruby Applications
12+
== Using it standalone
1313

14-
In your Gemfile, add:
14+
After installing, load any published model by id:
1515

1616
[source,ruby]
1717
----
18-
source "https://rubygems.org"
18+
require "secryst"
1919
20-
gem "secryst"
20+
model = Secryst::Model.load("ara-diac-small-2.1-int8")
21+
model.translate("قوله فحكمها في الوفاة")
2122
----
2223

23-
Create a Secrystfile near your Gemfile with the following, for each model you
24-
want to use in your application. Please consult our Secrystfile to get all the
25-
maps needed to get all the Secryst maps needed.
24+
The model is downloaded once, verified against its checksum, and cached
25+
under `~/.cache/secryst`. The list of published models is in
26+
https://github.com/interscript/interscript-ml/blob/main/models.yaml[models.yaml].
27+
28+
== Integration with Ruby applications
29+
30+
Add the gem to your Gemfile:
2631

2732
[source,ruby]
2833
----
29-
model "model-name"
34+
source "https://rubygems.org"
35+
36+
gem "secryst"
3037
----
3138

39+
Load models where they are needed. `Model.load` resolves, verifies, and
40+
caches on first use; there is no separate configuration file.
41+
3242
== Usage inside maps
3343

44+
A transliteration map can run a neural model as a step:
45+
3446
[source,ruby]
3547
----
3648
stage {
@@ -40,4 +52,5 @@ stage {
4052
}
4153
----
4254

43-
As of now, Secryst is usable only by the Ruby implementation.
55+
A map that declares a `secryst` step requires the gem; maps without
56+
neural steps work unchanged.

src/pages/about.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,8 @@ const partners: Partner[] = [
172172
</li>
173173
<li>
174174
<strong>Crystals</strong> — <a href="https://www.secryst.org">secryst</a> (<code
175-
>gem secryst</code
176-
> · <code>pip install secryst</code> · <code>npm i secryst</code>) — local ONNX
175+
>gem install secryst</code
176+
> · <code>pip install interscript-ml</code> · <code>npm install interscript</code>) — local ONNX
177177
inference implementing the contract. A crystal has no interscript dependency; an engine
178178
without a crystal simply cannot execute maps that declare a vocalization step.
179179
</li>

src/pages/docs/phonological-layer.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import Base from "../../layouts/Base.astro"
3232
<li><strong>interscript engines</strong> stay pure. A map that needs
3333
vocalization declares a <code>secryst</code> (or future <code>vocalize</code>) step; without a crystal installed, that map
3434
simply cannot run that step.</li>
35-
<li><strong>secryst crystals</strong> (<code>gem secryst</code> · <code>pip install secryst</code> · <code>npm i secryst</code> resolve a model id through <code>models.yaml</code>, download a sha256-verified IMF&nbsp;v1 zip,
35+
<li><strong>secryst crystals</strong> (<code>gem install secryst</code> · <code>pip install interscript-ml</code> · <code>npm install interscript</code> resolve a model id through <code>models.yaml</code>, download a sha256-verified IMF&nbsp;v1 zip,
3636
cache it under <code>~/.cache/secryst</code>, and run greedy ONNX
3737
inference locally. No cloud, no telemetry.</li>
3838
<li><strong>interscript-ml</strong> is the contract only: the index,

src/pages/ml.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ const clientModels = [
454454
gem install secryst
455455

456456
# Python
457-
pip install secryst
457+
pip install interscript-ml
458458

459459
# TypeScript / JavaScript
460460
npm install secryst</code></pre>

0 commit comments

Comments
 (0)