mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-03 17:08:13 +00:00
Push rollout into the future to fix the pronunciation bug
We rolled this out as the default too soon. New models are trained on 10% arpabet only.
This commit is contained in:
1 parent
39bffb527e
commit
b71278aef1
1 file changed
+3
-2
@@ -3,7 +3,8 @@ use chrono::{DateTime, Utc};
|
||||
use once_cell::sync::Lazy;
|
||||
use crate::text_pipelines::text_pipeline_type::TextPipelineType;
|
||||
|
||||
const ENGLISH_V1_EPOCH_STR : &'static str = "2022-05-01T00:00:00.00Z";
|
||||
// TODO: This is not yet popularized
|
||||
const ENGLISH_V1_EPOCH_STR : &'static str = "2023-01-01T00:00:00.00Z";
|
||||
|
||||
/// Date we consider to switch models to "english_v1" instead of "legacy_fakeyou"
|
||||
static ENGLISH_V1_EPOCH : Lazy<DateTime<Utc>> = Lazy::new(|| {
|
||||
@@ -46,7 +47,7 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
fn newish_models_use_english_v1() {
|
||||
let datetime = DateTime::parse_from_rfc3339("2022-07-01T00:00:00.00Z")
|
||||
let datetime = DateTime::parse_from_rfc3339("2023-07-01T00:00:00.00Z")
|
||||
.expect("should parse")
|
||||
.with_timezone(&Utc);
|
||||
assert_eq!(guess_text_pipeline_heuristic(Some(datetime)), TextPipelineType::EnglishV1);
|
||||
|
||||
Reference in new issue
Block a user