27 lines
584 B
C#
27 lines
584 B
C#
/// Copyright (c) 2025 Xiaomi Corporation (authors: Fangjun Kuang)
|
|
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace SherpaOnnx
|
|
{
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public struct HomophoneReplacerConfig
|
|
{
|
|
public HomophoneReplacerConfig()
|
|
{
|
|
DictDir = "";
|
|
Lexicon = "";
|
|
RuleFsts = "";
|
|
}
|
|
|
|
[MarshalAs(UnmanagedType.LPStr)]
|
|
public string DictDir;
|
|
|
|
[MarshalAs(UnmanagedType.LPStr)]
|
|
public string Lexicon;
|
|
|
|
[MarshalAs(UnmanagedType.LPStr)]
|
|
public string RuleFsts;
|
|
}
|
|
}
|