catalyst
catalyst copied to clipboard
Upgrade MessagePack to v3 to support AOT
Hi @theolivenbaum, Thank you for open-sourcing this library. It helps porting Python-based NLP to C#!
Key changes in this PR:
- Upgraded the
MessagePackpackage to v3 to ensure it works on the AOT required environment (Unity / Xamarin)
Details
I'm using Catalyst in Unity. It worked perfectly on Windows and macOS, but when running it in IL2CPP environments like iOS, I get the following error when calling await Pipeline.ForAsync(Mosaik.Core.Language.English); . This can be resolved by upgrading to MessagePack v3, which generates AOT-compatible source code via source generators.
Error log on iOS
PlatformNotSupportedException: Operation is not supported on this platform.
 at System.Reflection.Emit.AssemblyBuilder.DefineDynamicAssembly (System.Reflection.AssemblyName name, System.Reflection.Emit.AssemblyBuilderAccess access) [0x00000] in <00000000000000000000000000000000>:0Â
 at MessagePack.Internal.DynamicAssembly..ctor (System.String moduleName) [0x00000] in <00000000000000000000000000000000>:0Â
 at MessagePack.Resolvers.DynamicObjectResolver+<>c.<.cctor>b__4_0 () [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Lazy`1[T].ViaFactory (System.Threading.LazyThreadSafetyMode mode) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Lazy`1[T].ExecutionAndPublication (System.LazyHelper executionAndPublication, System.Boolean useDefaultConstructor) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Lazy`1[T].CreateValue () [0x00000] in <00000000000000000000000000000000>:0Â
 at MessagePack.Resolvers.DynamicObjectResolver+FormatterCache`1[T]..cctor () [0x00000] in <00000000000000000000000000000000>:0Â
 at MessagePack.Resolvers.DynamicObjectResolver.GetFormatter[T] () [0x00000] in <00000000000000000000000000000000>:0Â
 at MessagePack.Resolvers.StandardResolver+FormatterCache`1[T]..cctor () [0x00000] in <00000000000000000000000000000000>:0Â
 at MessagePack.Resolvers.StandardResolver.GetFormatter[T] () [0x00000] in <00000000000000000000000000000000>:0Â
 at Unity.Collections.LowLevel.Unsafe.NativeArrayUnsafeUtility.ConvertExistingDataToNativeArray[T] (System.Void* dataPointer, System.Int32 length, Unity.Collections.Allocator allocator) [0x00000] in <00000000000000000000000000000000>:0Â
 at MessagePack.MessagePackSerializer.Deserialize[T] (MessagePack.MessagePackReader& reader, MessagePack.MessagePackSerializerOptions options) [0x00000] in <00000000000000000000000000000000>:0Â
 at MessagePack.MessagePackSerializer.DeserializeFromSequenceAndRewindStreamIfPossible[T] (System.IO.Stream streamToRewind, MessagePack.MessagePackSerializerOptions options, System.Buffers.ReadOnlySequence`1[T] sequence, System.Threading.CancellationToken cancellationToken) [0x00000] in <00000000000000000000000000000000>:0Â
 at MessagePack.MessagePackSerializer.DeserializeAsync[T] (System.IO.Stream stream, MessagePack.MessagePackSerializerOptions options, System.Threading.CancellationToken cancellationToken) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at MessagePack.MessagePackSerializer.DeserializeAsync[T] (System.IO.Stream stream, MessagePack.MessagePackSerializerOptions options, System.Threading.CancellationToken cancellationToken) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.StorableObjectV2`2[TModel,TData].LoadAsync (System.IO.Stream stream) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.StorableObjectV2`2[TModel,TData].LoadAsync (System.IO.Stream stream) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Models.English+<>c.<Register>b__0_9 (System.IO.Stream s) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Models.English+<>c.<Register>b__0_9 (System.IO.Stream s) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.ResourceLoader.LoadAsync[T] (System.Reflection.Assembly assembly, System.String resourceFile, System.Func`2[T,TResult] loader) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.ResourceLoader.LoadAsync[T] (System.Reflection.Assembly assembly, System.String resourceFile, System.Func`2[T,TResult] loader) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Models.English+<>c.<Register>b__0_2 () [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Models.English+<>c.<Register>b__0_2 () [0x00000] in <00000000000000000000000000000000>:0Â
 at Mosaik.Core.StorableObject`2[TModel,TData].LoadDataAsync () [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at Mosaik.Core.StorableObject`2[TModel,TData].LoadDataAsync () [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Models.SentenceDetector.FromStoreAsync (Mosaik.Core.Language language, System.Int32 version, System.String tag) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Models.SentenceDetector.FromStoreAsync (Mosaik.Core.Language language, System.Int32 version, System.String tag) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Pipeline.TokenizerForAsync (Mosaik.Core.Language language, System.Boolean sentenceDetector) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Pipeline.TokenizerForAsync (Mosaik.Core.Language language, System.Boolean sentenceDetector) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Pipeline.ForAsync (Mosaik.Core.Language language, System.Boolean sentenceDetector, System.Boolean tagger) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Pipeline.ForAsync (Mosaik.Core.Language language, System.Boolean sentenceDetector, System.Boolean tagger) [0x00000] in <00000000000000000000000000000000>:0Â
 at Kokoro.SimpleEnglishG2P.InitializeAsync (Kokoro.LanguageCode lang, System.Threading.CancellationToken cancellationToken) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run () [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.Tasks.Task.Execute () [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.Tasks.Task.ExecuteWithThreadLocal (System.Threading.Tasks.Task& currentTaskSlot) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.Tasks.Task.ExecuteEntry (System.Boolean bPreventDoubleExecution) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00000] in <00000000000000000000000000000000>:0Â
--- End of stack trace from previous location where exception was thrown ---
 at System.Lazy`1[T].CreateValue () [0x00000] in <00000000000000000000000000000000>:0Â
 at MessagePack.Resolvers.DynamicObjectResolver+FormatterCache`1[T]..cctor () [0x00000] in <00000000000000000000000000000000>:0Â
 at MessagePack.Resolvers.DynamicObjectResolver.GetFormatter[T] () [0x00000] in <00000000000000000000000000000000>:0Â
 at MessagePack.Resolvers.StandardResolver+FormatterCache`1[T]..cctor () [0x00000] in <00000000000000000000000000000000>:0Â
 at MessagePack.Resolvers.StandardResolver.GetFormatter[T] () [0x00000] in <00000000000000000000000000000000>:0Â
 at Unity.Collections.LowLevel.Unsafe.NativeArrayUnsafeUtility.ConvertExistingDataToNativeArray[T] (System.Void* dataPointer, System.Int32 length, Unity.Collections.Allocator allocator) [0x00000] in <00000000000000000000000000000000>:0Â
 at MessagePack.MessagePackSerializer.Deserialize[T] (MessagePack.MessagePackReader& reader, MessagePack.MessagePackSerializerOptions options) [0x00000] in <00000000000000000000000000000000>:0Â
 at MessagePack.MessagePackSerializer.DeserializeFromSequenceAndRewindStreamIfPossible[T] (System.IO.Stream streamToRewind, MessagePack.MessagePackSerializerOptions options, System.Buffers.ReadOnlySequence`1[T] sequence, System.Threading.CancellationToken cancellationToken) [0x00000] in <00000000000000000000000000000000>:0Â
 at MessagePack.MessagePackSerializer.DeserializeAsync[T] (System.IO.Stream stream, MessagePack.MessagePackSerializerOptions options, System.Threading.CancellationToken cancellationToken) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at MessagePack.MessagePackSerializer.DeserializeAsync[T] (System.IO.Stream stream, MessagePack.MessagePackSerializerOptions options, System.Threading.CancellationToken cancellationToken) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.StorableObjectV2`2[TModel,TData].LoadAsync (System.IO.Stream stream) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.StorableObjectV2`2[TModel,TData].LoadAsync (System.IO.Stream stream) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Models.AveragePerceptronTagger.LoadAsync (System.IO.Stream stream) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Models.AveragePerceptronTagger.LoadAsync (System.IO.Stream stream) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Models.English+<>c.<Register>b__0_7 (System.IO.Stream s) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Models.English+<>c.<Register>b__0_7 (System.IO.Stream s) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.ResourceLoader.LoadAsync[T] (System.Reflection.Assembly assembly, System.String resourceFile, System.Func`2[T,TResult] loader) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.ResourceLoader.LoadAsync[T] (System.Reflection.Assembly assembly, System.String resourceFile, System.Func`2[T,TResult] loader) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Models.English+<>c.<Register>b__0_0 () [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Models.English+<>c.<Register>b__0_0 () [0x00000] in <00000000000000000000000000000000>:0Â
 at Mosaik.Core.StorableObject`2[TModel,TData].LoadDataAsync () [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at Mosaik.Core.StorableObject`2[TModel,TData].LoadDataAsync () [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Models.AveragePerceptronTagger.FromStoreAsync (Mosaik.Core.Language language, System.Int32 version, System.String tag) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Models.AveragePerceptronTagger.FromStoreAsync (Mosaik.Core.Language language, System.Int32 version, System.String tag) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Pipeline.ForAsync (Mosaik.Core.Language language, System.Boolean sentenceDetector, System.Boolean tagger) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Pipeline.ForAsync (Mosaik.Core.Language language, System.Boolean sentenceDetector, System.Boolean tagger) [0x00000] in <00000000000000000000000000000000>:0Â
 at Kokoro.SimpleEnglishG2P.InitializeAsync (Kokoro.LanguageCode lang, System.Threading.CancellationToken cancellationToken) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run () [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.Tasks.Task.Execute () [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.Tasks.Task.ExecuteWithThreadLocal (System.Threading.Tasks.Task& currentTaskSlot) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.Tasks.Task.ExecuteEntry (System.Boolean bPreventDoubleExecution) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00000] in <00000000000000000000000000000000>:0Â
Rethrow as TypeInitializationException: The type initializer for 'MessagePack.Resolvers.DynamicObjectResolver.FormatterCache<Catalyst.Models.AveragePerceptronTaggerModel>' threw an exception.
 at MessagePack.Resolvers.DynamicObjectResolver.GetFormatter[T] () [0x00000] in <00000000000000000000000000000000>:0Â
 at MessagePack.Resolvers.StandardResolver+FormatterCache`1[T]..cctor () [0x00000] in <00000000000000000000000000000000>:0Â
 at MessagePack.Resolvers.StandardResolver.GetFormatter[T] () [0x00000] in <00000000000000000000000000000000>:0Â
 at Unity.Collections.LowLevel.Unsafe.NativeArrayUnsafeUtility.ConvertExistingDataToNativeArray[T] (System.Void* dataPointer, System.Int32 length, Unity.Collections.Allocator allocator) [0x00000] in <00000000000000000000000000000000>:0Â
 at MessagePack.MessagePackSerializer.Deserialize[T] (MessagePack.MessagePackReader& reader, MessagePack.MessagePackSerializerOptions options) [0x00000] in <00000000000000000000000000000000>:0Â
 at MessagePack.MessagePackSerializer.DeserializeFromSequenceAndRewindStreamIfPossible[T] (System.IO.Stream streamToRewind, MessagePack.MessagePackSerializerOptions options, System.Buffers.ReadOnlySequence`1[T] sequence, System.Threading.CancellationToken cancellationToken) [0x00000] in <00000000000000000000000000000000>:0Â
 at MessagePack.MessagePackSerializer.DeserializeAsync[T] (System.IO.Stream stream, MessagePack.MessagePackSerializerOptions options, System.Threading.CancellationToken cancellationToken) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at MessagePack.MessagePackSerializer.DeserializeAsync[T] (System.IO.Stream stream, MessagePack.MessagePackSerializerOptions options, System.Threading.CancellationToken cancellationToken) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.StorableObjectV2`2[TModel,TData].LoadAsync (System.IO.Stream stream) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.StorableObjectV2`2[TModel,TData].LoadAsync (System.IO.Stream stream) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Models.AveragePerceptronTagger.LoadAsync (System.IO.Stream stream) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Models.AveragePerceptronTagger.LoadAsync (System.IO.Stream stream) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Models.English+<>c.<Register>b__0_7 (System.IO.Stream s) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Models.English+<>c.<Register>b__0_7 (System.IO.Stream s) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.ResourceLoader.LoadAsync[T] (System.Reflection.Assembly assembly, System.String resourceFile, System.Func`2[T,TResult] loader) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.ResourceLoader.LoadAsync[T] (System.Reflection.Assembly assembly, System.String resourceFile, System.Func`2[T,TResult] loader) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Models.English+<>c.<Register>b__0_0 () [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Models.English+<>c.<Register>b__0_0 () [0x00000] in <00000000000000000000000000000000>:0Â
 at Mosaik.Core.StorableObject`2[TModel,TData].LoadDataAsync () [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at Mosaik.Core.StorableObject`2[TModel,TData].LoadDataAsync () [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Models.AveragePerceptronTagger.FromStoreAsync (Mosaik.Core.Language language, System.Int32 version, System.String tag) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Models.AveragePerceptronTagger.FromStoreAsync (Mosaik.Core.Language language, System.Int32 version, System.String tag) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Pipeline.ForAsync (Mosaik.Core.Language language, System.Boolean sentenceDetector, System.Boolean tagger) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Pipeline.ForAsync (Mosaik.Core.Language language, System.Boolean sentenceDetector, System.Boolean tagger) [0x00000] in <00000000000000000000000000000000>:0Â
 at Kokoro.SimpleEnglishG2P.InitializeAsync (Kokoro.LanguageCode lang, System.Threading.CancellationToken cancellationToken) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run () [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.Tasks.Task.Execute () [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.Tasks.Task.ExecuteWithThreadLocal (System.Threading.Tasks.Task& currentTaskSlot) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.Tasks.Task.ExecuteEntry (System.Boolean bPreventDoubleExecution) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00000] in <00000000000000000000000000000000>:0Â
--- End of stack trace from previous location where exception was thrown ---
 at MessagePack.FormatterResolverExtensions.Throw (System.TypeInitializationException ex) [0x00000] in <00000000000000000000000000000000>:0Â
 at Unity.Collections.LowLevel.Unsafe.NativeArrayUnsafeUtility.ConvertExistingDataToNativeArray[T] (System.Void* dataPointer, System.Int32 length, Unity.Collections.Allocator allocator) [0x00000] in <00000000000000000000000000000000>:0Â
 at MessagePack.MessagePackSerializer.Deserialize[T] (MessagePack.MessagePackReader& reader, MessagePack.MessagePackSerializerOptions options) [0x00000] in <00000000000000000000000000000000>:0Â
 at MessagePack.MessagePackSerializer.DeserializeFromSequenceAndRewindStreamIfPossible[T] (System.IO.Stream streamToRewind, MessagePack.MessagePackSerializerOptions options, System.Buffers.ReadOnlySequence`1[T] sequence, System.Threading.CancellationToken cancellationToken) [0x00000] in <00000000000000000000000000000000>:0Â
 at MessagePack.MessagePackSerializer.DeserializeAsync[T] (System.IO.Stream stream, MessagePack.MessagePackSerializerOptions options, System.Threading.CancellationToken cancellationToken) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at MessagePack.MessagePackSerializer.DeserializeAsync[T] (System.IO.Stream stream, MessagePack.MessagePackSerializerOptions options, System.Threading.CancellationToken cancellationToken) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.StorableObjectV2`2[TModel,TData].LoadAsync (System.IO.Stream stream) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.StorableObjectV2`2[TModel,TData].LoadAsync (System.IO.Stream stream) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Models.AveragePerceptronTagger.LoadAsync (System.IO.Stream stream) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Models.AveragePerceptronTagger.LoadAsync (System.IO.Stream stream) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Models.English+<>c.<Register>b__0_7 (System.IO.Stream s) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Models.English+<>c.<Register>b__0_7 (System.IO.Stream s) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.ResourceLoader.LoadAsync[T] (System.Reflection.Assembly assembly, System.String resourceFile, System.Func`2[T,TResult] loader) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.ResourceLoader.LoadAsync[T] (System.Reflection.Assembly assembly, System.String resourceFile, System.Func`2[T,TResult] loader) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Models.English+<>c.<Register>b__0_0 () [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Models.English+<>c.<Register>b__0_0 () [0x00000] in <00000000000000000000000000000000>:0Â
 at Mosaik.Core.StorableObject`2[TModel,TData].LoadDataAsync () [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at Mosaik.Core.StorableObject`2[TModel,TData].LoadDataAsync () [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Models.AveragePerceptronTagger.FromStoreAsync (Mosaik.Core.Language language, System.Int32 version, System.String tag) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Models.AveragePerceptronTagger.FromStoreAsync (Mosaik.Core.Language language, System.Int32 version, System.String tag) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Pipeline.ForAsync (Mosaik.Core.Language language, System.Boolean sentenceDetector, System.Boolean tagger) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Pipeline.ForAsync (Mosaik.Core.Language language, System.Boolean sentenceDetector, System.Boolean tagger) [0x00000] in <00000000000000000000000000000000>:0Â
 at Kokoro.SimpleEnglishG2P.InitializeAsync (Kokoro.LanguageCode lang, System.Threading.CancellationToken cancellationToken) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run () [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.Tasks.Task.Execute () [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.Tasks.Task.ExecuteWithThreadLocal (System.Threading.Tasks.Task& currentTaskSlot) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.Tasks.Task.ExecuteEntry (System.Boolean bPreventDoubleExecution) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00000] in <00000000000000000000000000000000>:0Â
Rethrow as MessagePackSerializationException: Failed to deserialize Catalyst.Models.AveragePerceptronTaggerModel value.
 at MessagePack.MessagePackSerializer.Deserialize[T] (MessagePack.MessagePackReader& reader, MessagePack.MessagePackSerializerOptions options) [0x00000] in <00000000000000000000000000000000>:0Â
 at MessagePack.MessagePackSerializer.DeserializeFromSequenceAndRewindStreamIfPossible[T] (System.IO.Stream streamToRewind, MessagePack.MessagePackSerializerOptions options, System.Buffers.ReadOnlySequence`1[T] sequence, System.Threading.CancellationToken cancellationToken) [0x00000] in <00000000000000000000000000000000>:0Â
 at MessagePack.MessagePackSerializer.DeserializeAsync[T] (System.IO.Stream stream, MessagePack.MessagePackSerializerOptions options, System.Threading.CancellationToken cancellationToken) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at MessagePack.MessagePackSerializer.DeserializeAsync[T] (System.IO.Stream stream, MessagePack.MessagePackSerializerOptions options, System.Threading.CancellationToken cancellationToken) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.StorableObjectV2`2[TModel,TData].LoadAsync (System.IO.Stream stream) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.StorableObjectV2`2[TModel,TData].LoadAsync (System.IO.Stream stream) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Models.AveragePerceptronTagger.LoadAsync (System.IO.Stream stream) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Models.AveragePerceptronTagger.LoadAsync (System.IO.Stream stream) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Models.English+<>c.<Register>b__0_7 (System.IO.Stream s) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Models.English+<>c.<Register>b__0_7 (System.IO.Stream s) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.ResourceLoader.LoadAsync[T] (System.Reflection.Assembly assembly, System.String resourceFile, System.Func`2[T,TResult] loader) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.ResourceLoader.LoadAsync[T] (System.Reflection.Assembly assembly, System.String resourceFile, System.Func`2[T,TResult] loader) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Models.English+<>c.<Register>b__0_0 () [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Models.English+<>c.<Register>b__0_0 () [0x00000] in <00000000000000000000000000000000>:0Â
 at Mosaik.Core.StorableObject`2[TModel,TData].LoadDataAsync () [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at Mosaik.Core.StorableObject`2[TModel,TData].LoadDataAsync () [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Models.AveragePerceptronTagger.FromStoreAsync (Mosaik.Core.Language language, System.Int32 version, System.String tag) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Models.AveragePerceptronTagger.FromStoreAsync (Mosaik.Core.Language language, System.Int32 version, System.String tag) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Pipeline.ForAsync (Mosaik.Core.Language language, System.Boolean sentenceDetector, System.Boolean tagger) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Pipeline.ForAsync (Mosaik.Core.Language language, System.Boolean sentenceDetector, System.Boolean tagger) [0x00000] in <00000000000000000000000000000000>:0Â
 at Kokoro.SimpleEnglishG2P.InitializeAsync (Kokoro.LanguageCode lang, System.Threading.CancellationToken cancellationToken) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run () [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.Tasks.Task.Execute () [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.Tasks.Task.ExecuteWithThreadLocal (System.Threading.Tasks.Task& currentTaskSlot) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.Tasks.Task.ExecuteEntry (System.Boolean bPreventDoubleExecution) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00000] in <00000000000000000000000000000000>:0Â
--- End of stack trace from previous location where exception was thrown ---
 at Catalyst.Models.Neuralyzer.Mosaik.Core.IModel.get_Version () [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.StorableObjectV2`2[TModel,TData].LoadAsync (System.IO.Stream stream) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.StorableObjectV2`2[TModel,TData].LoadAsync (System.IO.Stream stream) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Models.AveragePerceptronTagger.LoadAsync (System.IO.Stream stream) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Models.AveragePerceptronTagger.LoadAsync (System.IO.Stream stream) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Models.English+<>c.<Register>b__0_7 (System.IO.Stream s) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Models.English+<>c.<Register>b__0_7 (System.IO.Stream s) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.ResourceLoader.LoadAsync[T] (System.Reflection.Assembly assembly, System.String resourceFile, System.Func`2[T,TResult] loader) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.ResourceLoader.LoadAsync[T] (System.Reflection.Assembly assembly, System.String resourceFile, System.Func`2[T,TResult] loader) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Models.English+<>c.<Register>b__0_0 () [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Models.English+<>c.<Register>b__0_0 () [0x00000] in <00000000000000000000000000000000>:0Â
 at Mosaik.Core.StorableObject`2[TModel,TData].LoadDataAsync () [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at Mosaik.Core.StorableObject`2[TModel,TData].LoadDataAsync () [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Models.AveragePerceptronTagger.FromStoreAsync (Mosaik.Core.Language language, System.Int32 version, System.String tag) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Models.AveragePerceptronTagger.FromStoreAsync (Mosaik.Core.Language language, System.Int32 version, System.String tag) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Pipeline.ForAsync (Mosaik.Core.Language language, System.Boolean sentenceDetector, System.Boolean tagger) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Pipeline.ForAsync (Mosaik.Core.Language language, System.Boolean sentenceDetector, System.Boolean tagger) [0x00000] in <00000000000000000000000000000000>:0Â
 at Kokoro.SimpleEnglishG2P.InitializeAsync (Kokoro.LanguageCode lang, System.Threading.CancellationToken cancellationToken) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run () [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.Tasks.Task.Execute () [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.Tasks.Task.ExecuteWithThreadLocal (System.Threading.Tasks.Task& currentTaskSlot) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.Tasks.Task.ExecuteEntry (System.Boolean bPreventDoubleExecution) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00000] in <00000000000000000000000000000000>:0Â
--- End of stack trace from previous location where exception was thrown ---
 at Catalyst.Models.AveragePerceptronTagger.LoadAsync (System.IO.Stream stream) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Models.AveragePerceptronTagger.LoadAsync (System.IO.Stream stream) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Models.English+<>c.<Register>b__0_7 (System.IO.Stream s) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Models.English+<>c.<Register>b__0_7 (System.IO.Stream s) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.ResourceLoader.LoadAsync[T] (System.Reflection.Assembly assembly, System.String resourceFile, System.Func`2[T,TResult] loader) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.ResourceLoader.LoadAsync[T] (System.Reflection.Assembly assembly, System.String resourceFile, System.Func`2[T,TResult] loader) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Models.English+<>c.<Register>b__0_0 () [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Models.English+<>c.<Register>b__0_0 () [0x00000] in <00000000000000000000000000000000>:0Â
 at Mosaik.Core.StorableObject`2[TModel,TData].LoadDataAsync () [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at Mosaik.Core.StorableObject`2[TModel,TData].LoadDataAsync () [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Models.AveragePerceptronTagger.FromStoreAsync (Mosaik.Core.Language language, System.Int32 version, System.String tag) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Models.AveragePerceptronTagger.FromStoreAsync (Mosaik.Core.Language language, System.Int32 version, System.String tag) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Pipeline.ForAsync (Mosaik.Core.Language language, System.Boolean sentenceDetector, System.Boolean tagger) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Pipeline.ForAsync (Mosaik.Core.Language language, System.Boolean sentenceDetector, System.Boolean tagger) [0x00000] in <00000000000000000000000000000000>:0Â
 at Kokoro.SimpleEnglishG2P.InitializeAsync (Kokoro.LanguageCode lang, System.Threading.CancellationToken cancellationToken) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run () [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.Tasks.Task.Execute () [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.Tasks.Task.ExecuteWithThreadLocal (System.Threading.Tasks.Task& currentTaskSlot) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.Tasks.Task.ExecuteEntry (System.Boolean bPreventDoubleExecution) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00000] in <00000000000000000000000000000000>:0Â
--- End of stack trace from previous location where exception was thrown ---
 at Catalyst.Models.English+<>c.<Register>b__0_7 (System.IO.Stream s) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Models.English+<>c.<Register>b__0_7 (System.IO.Stream s) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.ResourceLoader.LoadAsync[T] (System.Reflection.Assembly assembly, System.String resourceFile, System.Func`2[T,TResult] loader) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.ResourceLoader.LoadAsync[T] (System.Reflection.Assembly assembly, System.String resourceFile, System.Func`2[T,TResult] loader) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Models.English+<>c.<Register>b__0_0 () [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Models.English+<>c.<Register>b__0_0 () [0x00000] in <00000000000000000000000000000000>:0Â
 at Mosaik.Core.StorableObject`2[TModel,TData].LoadDataAsync () [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at Mosaik.Core.StorableObject`2[TModel,TData].LoadDataAsync () [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Models.AveragePerceptronTagger.FromStoreAsync (Mosaik.Core.Language language, System.Int32 version, System.String tag) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Models.AveragePerceptronTagger.FromStoreAsync (Mosaik.Core.Language language, System.Int32 version, System.String tag) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Pipeline.ForAsync (Mosaik.Core.Language language, System.Boolean sentenceDetector, System.Boolean tagger) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Pipeline.ForAsync (Mosaik.Core.Language language, System.Boolean sentenceDetector, System.Boolean tagger) [0x00000] in <00000000000000000000000000000000>:0Â
 at Kokoro.SimpleEnglishG2P.InitializeAsync (Kokoro.LanguageCode lang, System.Threading.CancellationToken cancellationToken) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run () [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.Tasks.Task.Execute () [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.Tasks.Task.ExecuteWithThreadLocal (System.Threading.Tasks.Task& currentTaskSlot) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.Tasks.Task.ExecuteEntry (System.Boolean bPreventDoubleExecution) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00000] in <00000000000000000000000000000000>:0Â
--- End of stack trace from previous location where exception was thrown ---
 at Catalyst.ResourceLoader.LoadAsync[T] (System.Reflection.Assembly assembly, System.String resourceFile, System.Func`2[T,TResult] loader) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.ResourceLoader.LoadAsync[T] (System.Reflection.Assembly assembly, System.String resourceFile, System.Func`2[T,TResult] loader) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Models.English+<>c.<Register>b__0_0 () [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Models.English+<>c.<Register>b__0_0 () [0x00000] in <00000000000000000000000000000000>:0Â
 at Mosaik.Core.StorableObject`2[TModel,TData].LoadDataAsync () [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at Mosaik.Core.StorableObject`2[TModel,TData].LoadDataAsync () [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Models.AveragePerceptronTagger.FromStoreAsync (Mosaik.Core.Language language, System.Int32 version, System.String tag) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Models.AveragePerceptronTagger.FromStoreAsync (Mosaik.Core.Language language, System.Int32 version, System.String tag) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Pipeline.ForAsync (Mosaik.Core.Language language, System.Boolean sentenceDetector, System.Boolean tagger) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Pipeline.ForAsync (Mosaik.Core.Language language, System.Boolean sentenceDetector, System.Boolean tagger) [0x00000] in <00000000000000000000000000000000>:0Â
 at Kokoro.SimpleEnglishG2P.InitializeAsync (Kokoro.LanguageCode lang, System.Threading.CancellationToken cancellationToken) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run () [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.Tasks.Task.Execute () [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.Tasks.Task.ExecuteWithThreadLocal (System.Threading.Tasks.Task& currentTaskSlot) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.Tasks.Task.ExecuteEntry (System.Boolean bPreventDoubleExecution) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00000] in <00000000000000000000000000000000>:0Â
--- End of stack trace from previous location where exception was thrown ---
 at Catalyst.Models.English+<>c.<Register>b__0_0 () [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Models.English+<>c.<Register>b__0_0 () [0x00000] in <00000000000000000000000000000000>:0Â
 at Mosaik.Core.StorableObject`2[TModel,TData].LoadDataAsync () [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at Mosaik.Core.StorableObject`2[TModel,TData].LoadDataAsync () [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Models.AveragePerceptronTagger.FromStoreAsync (Mosaik.Core.Language language, System.Int32 version, System.String tag) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Models.AveragePerceptronTagger.FromStoreAsync (Mosaik.Core.Language language, System.Int32 version, System.String tag) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Pipeline.ForAsync (Mosaik.Core.Language language, System.Boolean sentenceDetector, System.Boolean tagger) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Pipeline.ForAsync (Mosaik.Core.Language language, System.Boolean sentenceDetector, System.Boolean tagger) [0x00000] in <00000000000000000000000000000000>:0Â
 at Kokoro.SimpleEnglishG2P.InitializeAsync (Kokoro.LanguageCode lang, System.Threading.CancellationToken cancellationToken) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run () [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.Tasks.Task.Execute () [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.Tasks.Task.ExecuteWithThreadLocal (System.Threading.Tasks.Task& currentTaskSlot) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.Tasks.Task.ExecuteEntry (System.Boolean bPreventDoubleExecution) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00000] in <00000000000000000000000000000000>:0Â
--- End of stack trace from previous location where exception was thrown ---
 at Mosaik.Core.StorableObject`2[TModel,TData].LoadDataAsync () [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at Mosaik.Core.StorableObject`2[TModel,TData].LoadDataAsync () [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Models.AveragePerceptronTagger.FromStoreAsync (Mosaik.Core.Language language, System.Int32 version, System.String tag) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Models.AveragePerceptronTagger.FromStoreAsync (Mosaik.Core.Language language, System.Int32 version, System.String tag) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Pipeline.ForAsync (Mosaik.Core.Language language, System.Boolean sentenceDetector, System.Boolean tagger) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Pipeline.ForAsync (Mosaik.Core.Language language, System.Boolean sentenceDetector, System.Boolean tagger) [0x00000] in <00000000000000000000000000000000>:0Â
 at Kokoro.SimpleEnglishG2P.InitializeAsync (Kokoro.LanguageCode lang, System.Threading.CancellationToken cancellationToken) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run () [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.Tasks.Task.Execute () [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.Tasks.Task.ExecuteWithThreadLocal (System.Threading.Tasks.Task& currentTaskSlot) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.Tasks.Task.ExecuteEntry (System.Boolean bPreventDoubleExecution) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00000] in <00000000000000000000000000000000>:0Â
--- End of stack trace from previous location where exception was thrown ---
 at Catalyst.Models.AveragePerceptronTagger.FromStoreAsync (Mosaik.Core.Language language, System.Int32 version, System.String tag) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Models.AveragePerceptronTagger.FromStoreAsync (Mosaik.Core.Language language, System.Int32 version, System.String tag) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Pipeline.ForAsync (Mosaik.Core.Language language, System.Boolean sentenceDetector, System.Boolean tagger) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Pipeline.ForAsync (Mosaik.Core.Language language, System.Boolean sentenceDetector, System.Boolean tagger) [0x00000] in <00000000000000000000000000000000>:0Â
 at Kokoro.SimpleEnglishG2P.InitializeAsync (Kokoro.LanguageCode lang, System.Threading.CancellationToken cancellationToken) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run () [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.Tasks.Task.Execute () [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.Tasks.Task.ExecuteWithThreadLocal (System.Threading.Tasks.Task& currentTaskSlot) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.Tasks.Task.ExecuteEntry (System.Boolean bPreventDoubleExecution) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00000] in <00000000000000000000000000000000>:0Â
--- End of stack trace from previous location where exception was thrown ---
 at Catalyst.Pipeline.ForAsync (Mosaik.Core.Language language, System.Boolean sentenceDetector, System.Boolean tagger) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0Â
 at Catalyst.Pipeline.ForAsync (Mosaik.Core.Language language, System.Boolean sentenceDetector, System.Boolean tagger) [0x00000] in <00000000000000000000000000000000>:0Â
 at Kokoro.SimpleEnglishG2P.InitializeAsync (Kokoro.LanguageCode lang, System.Threading.CancellationToken cancellationToken) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run () [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.Tasks.Task.Execute () [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.Tasks.Task.ExecuteWithThreadLocal (System.Threading.Tasks.Task& currentTaskSlot) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.Tasks.Task.ExecuteEntry (System.Boolean bPreventDoubleExecution) [0x00000] in <00000000000000000000000000000000>:0Â
 at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00000] in <00000000000000000000000000000000>:0Â
--- End of stack trace from previous location where exception was thrown ---
(Here's a Kokoro TTS demo utilizing Catalyst for NLP)
https://github.com/user-attachments/assets/a4d7aefb-d606-40cb-bf7b-73db95798857