Beispiel #1
0
        public JsgfRule GetRule(string name)
        {
            global::System.IntPtr cPtr = SphinxBasePINVOKE.Jsgf_GetRule(swigCPtr, name);
            JsgfRule ret = (cPtr == global::System.IntPtr.Zero) ? null : new JsgfRule(cPtr, false);

            return(ret);
        }
Beispiel #2
0
        public JsgfIterator GetEnumerator()
        {
            global::System.IntPtr cPtr = SphinxBasePINVOKE.Jsgf_GetEnumerator(swigCPtr);
            JsgfIterator          ret  = (cPtr == global::System.IntPtr.Zero) ? null : new JsgfIterator(cPtr, true);

            return(ret);
        }
Beispiel #3
0
        public NGramModel Lookup(string name)
        {
            global::System.IntPtr cPtr = SphinxBasePINVOKE.NGramModelSet_Lookup(swigCPtr, name);
            NGramModel            ret  = (cPtr == global::System.IntPtr.Zero) ? null : new NGramModel(cPtr, false);

            return(ret);
        }
Beispiel #4
0
        public NGramModel Add(NGramModel model, string name, float weight, bool reuse_widmap)
        {
            global::System.IntPtr cPtr = SphinxBasePINVOKE.NGramModelSet_Add(swigCPtr, NGramModel.getCPtr(model), name, weight, reuse_widmap);
            NGramModel            ret  = (cPtr == global::System.IntPtr.Zero) ? null : new NGramModel(cPtr, false);

            return(ret);
        }
Beispiel #5
0
        public FsgModel BuildFsg(JsgfRule rule, LogMath logmath, float lw)
        {
            global::System.IntPtr cPtr = SphinxBasePINVOKE.Jsgf_BuildFsg(swigCPtr, JsgfRule.getCPtr(rule), LogMath.getCPtr(logmath), lw);
            FsgModel ret = (cPtr == global::System.IntPtr.Zero) ? null : new FsgModel(cPtr, false);

            return(ret);
        }
Beispiel #6
0
        public static NGramModel FromIter(SWIGTYPE_p_void itor)
        {
            global::System.IntPtr cPtr = SphinxBasePINVOKE.NGramModel_FromIter(SWIGTYPE_p_void.getCPtr(itor));
            NGramModel            ret  = (cPtr == global::System.IntPtr.Zero) ? null : new NGramModel(cPtr, false);

            return(ret);
        }
        public NGramModel GetCurrent()
        {
            global::System.IntPtr cPtr = SphinxBasePINVOKE.NGramModelSetIterator_GetCurrent(swigCPtr);
            NGramModel            ret  = (cPtr == global::System.IntPtr.Zero) ? null : new NGramModel(cPtr, false);

            return(ret);
        }
Beispiel #8
0
        public static JsgfRule FromIter(SWIGTYPE_p_void itor)
        {
            global::System.IntPtr cPtr = SphinxBasePINVOKE.JsgfRule_FromIter(SWIGTYPE_p_void.getCPtr(itor));
            JsgfRule ret = (cPtr == global::System.IntPtr.Zero) ? null : new JsgfRule(cPtr, false);

            return(ret);
        }
Beispiel #9
0
        public JsgfRule GetCurrent()
        {
            global::System.IntPtr cPtr = SphinxBasePINVOKE.JsgfIterator_GetCurrent(swigCPtr);
            JsgfRule ret = (cPtr == global::System.IntPtr.Zero) ? null : new JsgfRule(cPtr, false);

            return(ret);
        }
Beispiel #10
0
        public NGramModelSetIterator GetEnumerator()
        {
            global::System.IntPtr cPtr = SphinxBasePINVOKE.NGramModelSet_GetEnumerator(swigCPtr);
            NGramModelSetIterator ret  = (cPtr == global::System.IntPtr.Zero) ? null : new NGramModelSetIterator(cPtr, true);

            return(ret);
        }
Beispiel #11
0
 public virtual void Dispose()
 {
     lock(this) {
       if (swigCPtr.Handle != global::System.IntPtr.Zero) {
     if (swigCMemOwn) {
       swigCMemOwn = false;
       SphinxBasePINVOKE.delete_JsgfRule(swigCPtr);
     }
     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
       }
       global::System.GC.SuppressFinalize(this);
     }
 }
 public void Reset()
 {
     SphinxBasePINVOKE.NGramModelSetIterator_Reset(swigCPtr);
 }
Beispiel #13
0
        public int GetInt(string key)
        {
            int ret = SphinxBasePINVOKE.Config_GetInt(swigCPtr, key);

            return(ret);
        }
Beispiel #14
0
        public bool Exists(string key)
        {
            bool ret = SphinxBasePINVOKE.Config_Exists(swigCPtr, key);

            return(ret);
        }
Beispiel #15
0
 public void SetFloat(string key, double val)
 {
     SphinxBasePINVOKE.Config_SetFloat(swigCPtr, key, val);
 }
Beispiel #16
0
 public void SetBoolean(string key, bool val)
 {
     SphinxBasePINVOKE.Config_SetBoolean(swigCPtr, key, val);
 }
Beispiel #17
0
        public int ProcessUtt(string spch, uint nsamps, SWIGTYPE_p_p_p_mfcc_t cep_block)
        {
            int ret = SphinxBasePINVOKE.FrontEnd_ProcessUtt(swigCPtr, spch, nsamps, SWIGTYPE_p_p_p_mfcc_t.getCPtr(cep_block));

            return(ret);
        }
Beispiel #18
0
 public FrontEnd() : this(SphinxBasePINVOKE.new_FrontEnd(), true)
 {
 }
Beispiel #19
0
        public int OutputSize()
        {
            int ret = SphinxBasePINVOKE.FrontEnd_OutputSize(swigCPtr);

            return(ret);
        }
Beispiel #20
0
 public void Casefold(int kase)
 {
     SphinxBasePINVOKE.NGramModel_Casefold(swigCPtr, kase);
 }
Beispiel #21
0
        public string GetString(string key)
        {
            string ret = SphinxBasePINVOKE.Config_GetString(swigCPtr, key);

            return(ret);
        }
Beispiel #22
0
        public int Size()
        {
            int ret = SphinxBasePINVOKE.NGramModel_Size(swigCPtr);

            return(ret);
        }
Beispiel #23
0
 public void SetInt(string key, int val)
 {
     SphinxBasePINVOKE.Config_SetInt(swigCPtr, key, val);
 }
Beispiel #24
0
        public int AddWord(string word, float weight)
        {
            int ret = SphinxBasePINVOKE.NGramModel_AddWord(swigCPtr, word, weight);

            return(ret);
        }
Beispiel #25
0
 public void SetStringExtra(string key, string val)
 {
     SphinxBasePINVOKE.Config_SetStringExtra(swigCPtr, key, val);
 }
Beispiel #26
0
 public Feature() : this(SphinxBasePINVOKE.new_Feature(), true)
 {
 }
Beispiel #27
0
        public bool GetBoolean(string key)
        {
            bool ret = SphinxBasePINVOKE.Config_GetBoolean(swigCPtr, key);

            return(ret);
        }
 public NGramModelSetIterator(SWIGTYPE_p_void ptr) : this(SphinxBasePINVOKE.new_NGramModelSetIterator(SWIGTYPE_p_void.getCPtr(ptr)), true)
 {
 }
Beispiel #29
0
        public double GetFloat(string key)
        {
            double ret = SphinxBasePINVOKE.Config_GetFloat(swigCPtr, key);

            return(ret);
        }
        public bool MoveNext()
        {
            bool ret = SphinxBasePINVOKE.NGramModelSetIterator_MoveNext(swigCPtr);

            return(ret);
        }