Skip to content

armgit / laya

Public Imported from GitHub
0

Non-autoregressive System 1 decision engine. Typed choice, score and yes/no decisions over any text in a single forward pass, in 100+ languages, with a router that picks the right checkpoint per request.

docs(java,dotnet): the default-checkpoint docs still said english

Adeshina Lasisi95fd8a677a9f
diff --git a/laya-dotnet/src/Laya/LayaRouter.cs b/laya-dotnet/src/Laya/LayaRouter.cs
index 196e7fb1..7a649a30 100644
--- a/laya-dotnet/src/Laya/LayaRouter.cs
+++ b/laya-dotnet/src/Laya/LayaRouter.cs
@@ -43,7 +43,7 @@ public sealed class LayaRouterOptions
/// <summary>
/// Checkpoint used when a state has no letters or its Latin language is undetermined without
/// non-English evidence. Default
- /// <see cref="LayaCheckpoint.English"/>, matching Python's default.
+ /// <see cref="LayaCheckpoint.Multilingual"/>, matching Python's default.
/// </summary>
// Follows the reference, which moved this to multilingual: undecided Latin text is no
// evidence of English, and multilingual leads on 50 of the 51 languages swept.
diff --git a/laya-java/README.md b/laya-java/README.md
index 6787b608..34db248d 100644
--- a/laya-java/README.md
+++ b/laya-java/README.md
@@ -186,9 +186,11 @@ explicit language, a caller's hint, the built-in detection, then the configured
long as you hold it — `predict` leases internally, so the ordinary path needs no thought. An agent
handed in with `attach` is never closed: the caller keeps ownership.
-A deployment whose traffic is mostly not English should set
-`defaultCheckpoint(Checkpoint.MULTILINGUAL)`: an unidentified Latin-script state is no evidence of
-English, and that is the only knob which says so.
+The default is multilingual, as in the reference: an unidentified Latin-script state is no
+evidence of English. A deployment whose traffic is known to be English can set
+`defaultCheckpoint(Checkpoint.ENGLISH)`. The *alias* `"default"` is a different thing and still names
+english, as the reference's alias table does: `load("default")` loads english whatever
+`defaultCheckpoint` is set to.
## Detection on its own
diff --git a/laya-java/laya-java/src/main/java/com/convaiinnovations/laya/Router.java b/laya-java/laya-java/src/main/java/com/convaiinnovations/laya/Router.java
index 959e0415..b06bd335 100644
--- a/laya-java/laya-java/src/main/java/com/convaiinnovations/laya/Router.java
+++ b/laya-java/laya-java/src/main/java/com/convaiinnovations/laya/Router.java
@@ -405,7 +405,7 @@ public final class Router implements AutoCloseable, Predictor {
this.maxLoaded = builder.maxLoaded;
}
- /** A router with the reference's defaults: the bundle, English as default, no auto-detection. */
+ /** A router with the reference's defaults: the bundle, multilingual as default, no auto-detection. */
public static Router withDefaults() {
return builder().build();
}
@@ -434,9 +434,9 @@ public final class Router implements AutoCloseable, Predictor {
/**
* Where to send a state nothing identifies.
*
- * <p>English by default, which is the reference's choice. A deployment whose traffic is
- * mostly not English should set this to {@link Checkpoint#MULTILINGUAL}: an unidentified
- * Latin-script state is no evidence of English, and this is the only knob that says so.
+ * <p>Multilingual by default, which is the reference's choice: an unidentified
+ * Latin-script state is no evidence of English. A deployment whose traffic is known to be
+ * English can set {@link Checkpoint#ENGLISH} here.
*/
public Builder defaultCheckpoint(Checkpoint value) {
this.defaultCheckpoint = requireNonNull(value, "defaultCheckpoint");