Example #1
0
 public virtual void set_features(StringWordFeatures feat)
 {
     modshogunPINVOKE.PluginEstimate_set_features(swigCPtr, StringWordFeatures.getCPtr(feat));
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #2
0
 public void set_observation_nocache(StringWordFeatures obs)
 {
     modshogunPINVOKE.HMM_set_observation_nocache(swigCPtr, StringWordFeatures.getCPtr(obs));
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #3
0
 public void set_observations(StringWordFeatures obs, HMM hmm)
 {
     modshogunPINVOKE.HMM_set_observations__SWIG_0(swigCPtr, StringWordFeatures.getCPtr(obs), HMM.getCPtr(hmm));
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #4
0
    public bool append_features(StringWordFeatures sf)
    {
        bool ret = modshogunPINVOKE.StringWordFeatures_append_features(swigCPtr, StringWordFeatures.getCPtr(sf));

        if (modshogunPINVOKE.SWIGPendingException.Pending)
        {
            throw modshogunPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
 public SalzbergWordStringKernel(StringWordFeatures l, StringWordFeatures r, PluginEstimate pie) : this(modshogunPINVOKE.new_SalzbergWordStringKernel__SWIG_4(StringWordFeatures.getCPtr(l), StringWordFeatures.getCPtr(r), PluginEstimate.getCPtr(pie)), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #6
0
 public PolyMatchWordStringKernel(StringWordFeatures l, StringWordFeatures r, int degree, bool inhomogene) : this(modshogunPINVOKE.new_PolyMatchWordStringKernel__SWIG_2(StringWordFeatures.getCPtr(l), StringWordFeatures.getCPtr(r), degree, inhomogene), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #7
0
 public StringWordFeatures(StringWordFeatures orig) : this(modshogunPINVOKE.new_StringWordFeatures__SWIG_5(StringWordFeatures.getCPtr(orig)), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #8
0
 public LinearHMM(StringWordFeatures f) : this(modshogunPINVOKE.new_LinearHMM__SWIG_1(StringWordFeatures.getCPtr(f)), true) {
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
Example #9
0
 public HammingWordDistance(StringWordFeatures l, StringWordFeatures r, bool use_sign) : this(modshogunPINVOKE.new_HammingWordDistance__SWIG_2(StringWordFeatures.getCPtr(l), StringWordFeatures.getCPtr(r), use_sign), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public ExplicitSpecFeatures(StringWordFeatures str) : this(modshogunPINVOKE.new_ExplicitSpecFeatures__SWIG_2(StringWordFeatures.getCPtr(str)), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public WeightedCommWordStringKernel(StringWordFeatures l, StringWordFeatures r) : this(modshogunPINVOKE.new_WeightedCommWordStringKernel__SWIG_4(StringWordFeatures.getCPtr(l), StringWordFeatures.getCPtr(r)), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public WeightedCommWordStringKernel(StringWordFeatures l, StringWordFeatures r, bool use_sign, int size) : this(modshogunPINVOKE.new_WeightedCommWordStringKernel__SWIG_2(StringWordFeatures.getCPtr(l), StringWordFeatures.getCPtr(r), use_sign, size), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #13
0
 public ManhattanWordDistance(StringWordFeatures l, StringWordFeatures r) : this(modshogunPINVOKE.new_ManhattanWordDistance__SWIG_1(StringWordFeatures.getCPtr(l), StringWordFeatures.getCPtr(r)), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public ImplicitWeightedSpecFeatures(StringWordFeatures str, bool normalize) : this(modshogunPINVOKE.new_ImplicitWeightedSpecFeatures__SWIG_1(StringWordFeatures.getCPtr(str), normalize), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #15
0
 public Histogram(StringWordFeatures f) : this(modshogunPINVOKE.new_Histogram__SWIG_1(StringWordFeatures.getCPtr(f)), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #16
0
 public HMM(StringWordFeatures obs, int N, int M, double PSEUDO) : this(modshogunPINVOKE.new_HMM__SWIG_2(StringWordFeatures.getCPtr(obs), N, M, PSEUDO), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }