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.
Python calibrationclassificationdecision-modelhuggingfacejevmodernbertmultilingualnlppythonpytorchroutingtyped-decisionszero-shot
test(rust): add the .NET side's astral-digit email probes to the shared corpus
kevin-gatimu6271446e1336
diff --git a/laya-rust/tests/golden/routing/email_probe.json b/laya-rust/tests/golden/routing/email_probe.jsonindex a257491d..594425cc 100644--- a/laya-rust/tests/golden/routing/email_probe.json+++ b/laya-rust/tests/golden/routing/email_probe.json@@ -1475,6 +1475,48 @@"body": "Please help me.\nSent from my iPhone using KIT","max_chars": 3000,"result": "Please help me."+ },+ {+ "label": "pyre/astral_digit_quote_header",+ "body": "Please help me.\nEm 𝟚𝟘𝟚𝟜 João escreveu:\n> old request\nStill mine.",+ "max_chars": 3000,+ "result": "Please help me."+ },+ {+ "label": "pyre/astral_digit_french_header",+ "body": "Please help me.\nLe 𝟚 janvier a écrit :\n> old request",+ "max_chars": 3000,+ "result": "Please help me."+ },+ {+ "label": "pyre/astral_digit_header_pair",+ "body": "Please help me.\nFrom: Maria Souza\nDate: 𝟚𝟘𝟚𝟜\nOld request.",+ "max_chars": 3000,+ "result": "Please help me."+ },+ {+ "label": "pyre/astral_digit_in_year_needs_four",+ "body": "Please help me.\nFrom: Maria Souza\nDate: 𝟚𝟘𝟚\nOld request.",+ "max_chars": 3000,+ "result": "Please help me.\nFrom: Maria Souza\nDate: 𝟚𝟘𝟚\nOld request."+ },+ {+ "label": "pyre/astral_number_not_digit_header",+ "body": "Please help me.\nEm 𐄇 João escreveu:\n> old request\nStill mine.",+ "max_chars": 3000,+ "result": "Please help me.\nEm 𐄇 João escreveu:\nStill mine."+ },+ {+ "label": "pyre/astral_letter_not_digit_header",+ "body": "Please help me.\nEm 𝐀 João escreveu:\n> old request\nStill mine.",+ "max_chars": 3000,+ "result": "Please help me.\nEm 𝐀 João escreveu:\nStill mine."+ },+ {+ "label": "pyre/astral_digit_device_footer",+ "body": "Please help me.\nSent from my iPhone 𝟚",+ "max_chars": 3000,+ "result": "Please help me."}],"state": [diff --git a/laya-rust/tests/golden/routing/meta.json b/laya-rust/tests/golden/routing/meta.jsonindex d807efc3..12a79316 100644--- a/laya-rust/tests/golden/routing/meta.json+++ b/laya-rust/tests/golden/routing/meta.json@@ -9,7 +9,7 @@"counts": {"lang_probe": 246,"route_probe": 142,- "email_probe_clean": 246,+ "email_probe_clean": 253,"email_probe_state": 22,"shortlist_probe": 22,"hashing_embedder_probe": 22diff --git a/laya-rust/tools/routing_cases.py b/laya-rust/tools/routing_cases.pyindex 1ad894e8..f32b488d 100644--- a/laya-rust/tools/routing_cases.py+++ b/laya-rust/tools/routing_cases.py@@ -928,6 +928,21 @@ EMAIL_CLEAN_CASES = [("pyre/ignorecase_long_s_pt_signoff", "Preciso de ajuda.\nſaludoſ cordiales,\nMaria", 3000),("pyre/ignorecase_kelvin_sign_signoff", "Please help me.\nThanK you,\nJohn", 3000),("pyre/ignorecase_kelvin_sign_device_footer", "Please help me.\nSent from my iPhone using KIT", 3000),+ # astral decimal digits: Python's Unicode `\d` (Nd) matches them; a number that is not a decimal digit (No) is `\w` only+ ("pyre/astral_digit_quote_header",+ "Please help me.\nEm \U0001d7da\U0001d7d8\U0001d7da\U0001d7dc João escreveu:\n> old request\nStill mine.", 3000),+ ("pyre/astral_digit_french_header",+ "Please help me.\nLe \U0001d7da janvier a écrit :\n> old request", 3000),+ ("pyre/astral_digit_header_pair",+ "Please help me.\nFrom: Maria Souza\nDate: \U0001d7da\U0001d7d8\U0001d7da\U0001d7dc\nOld request.", 3000),+ ("pyre/astral_digit_in_year_needs_four",+ "Please help me.\nFrom: Maria Souza\nDate: \U0001d7da\U0001d7d8\U0001d7da\nOld request.", 3000),+ ("pyre/astral_number_not_digit_header",+ "Please help me.\nEm \U00010107 João escreveu:\n> old request\nStill mine.", 3000),+ ("pyre/astral_letter_not_digit_header",+ "Please help me.\nEm \U0001d400 João escreveu:\n> old request\nStill mine.", 3000),+ ("pyre/astral_digit_device_footer",+ "Please help me.\nSent from my iPhone \U0001d7da", 3000),]EMAIL_STATE_CASES = [