コード例 #1
0
ファイル: Tagger.cs プロジェクト: zyxPaiDaxing/mecab
 public Tagger() : this(MeCabPINVOKE.new_Tagger__SWIG_1(), true)
 {
     if (MeCabPINVOKE.SWIGPendingException.Pending)
     {
         throw MeCabPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #2
0
ファイル: Lattice.cs プロジェクト: zyxPaiDaxing/mecab
 public Lattice() : this(MeCabPINVOKE.new_Lattice(), true)
 {
     if (MeCabPINVOKE.SWIGPendingException.Pending)
     {
         throw MeCabPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #3
0
 public Model() : this(MeCabPINVOKE.new_Model__SWIG_1(), true)
 {
     if (MeCabPINVOKE.SWIGPendingException.Pending)
     {
         throw MeCabPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #4
0
ファイル: DictionaryInfo.cs プロジェクト: zyxPaiDaxing/mecab
 public DictionaryInfo() : this(MeCabPINVOKE.new_DictionaryInfo(), true)
 {
     if (MeCabPINVOKE.SWIGPendingException.Pending)
     {
         throw MeCabPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #5
0
ファイル: Lattice.cs プロジェクト: zyxPaiDaxing/mecab
 public virtual void clear()
 {
     MeCabPINVOKE.Lattice_clear(swigCPtr);
     if (MeCabPINVOKE.SWIGPendingException.Pending)
     {
         throw MeCabPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #6
0
ファイル: Lattice.cs プロジェクト: zyxPaiDaxing/mecab
 public void set_sentence(string sentence)
 {
     MeCabPINVOKE.Lattice_set_sentence(swigCPtr, sentence);
     if (MeCabPINVOKE.SWIGPendingException.Pending)
     {
         throw MeCabPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #7
0
ファイル: Lattice.cs プロジェクト: zyxPaiDaxing/mecab
 public virtual void set_what(string str)
 {
     MeCabPINVOKE.Lattice_set_what(swigCPtr, str);
     if (MeCabPINVOKE.SWIGPendingException.Pending)
     {
         throw MeCabPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #8
0
ファイル: Lattice.cs プロジェクト: zyxPaiDaxing/mecab
 public virtual void set_feature_constraint(uint begin_pos, uint end_pos, string feature)
 {
     MeCabPINVOKE.Lattice_set_feature_constraint(swigCPtr, begin_pos, end_pos, feature);
     if (MeCabPINVOKE.SWIGPendingException.Pending)
     {
         throw MeCabPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #9
0
ファイル: Lattice.cs プロジェクト: zyxPaiDaxing/mecab
 public virtual void set_boundary_constraint(uint pos, int boundary_constraint_type)
 {
     MeCabPINVOKE.Lattice_set_boundary_constraint(swigCPtr, pos, boundary_constraint_type);
     if (MeCabPINVOKE.SWIGPendingException.Pending)
     {
         throw MeCabPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #10
0
ファイル: Tagger.cs プロジェクト: zyxPaiDaxing/mecab
 public virtual void set_request_type(int request_type)
 {
     MeCabPINVOKE.Tagger_set_request_type(swigCPtr, request_type);
     if (MeCabPINVOKE.SWIGPendingException.Pending)
     {
         throw MeCabPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #11
0
ファイル: Lattice.cs プロジェクト: zyxPaiDaxing/mecab
 public virtual void set_Z(double Z)
 {
     MeCabPINVOKE.Lattice_set_Z(swigCPtr, Z);
     if (MeCabPINVOKE.SWIGPendingException.Pending)
     {
         throw MeCabPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #12
0
ファイル: Tagger.cs プロジェクト: zyxPaiDaxing/mecab
 public virtual void set_partial(bool partial)
 {
     MeCabPINVOKE.Tagger_set_partial(swigCPtr, partial);
     if (MeCabPINVOKE.SWIGPendingException.Pending)
     {
         throw MeCabPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #13
0
ファイル: Tagger.cs プロジェクト: zyxPaiDaxing/mecab
 public virtual void set_all_morphs(bool all_morphs)
 {
     MeCabPINVOKE.Tagger_set_all_morphs(swigCPtr, all_morphs);
     if (MeCabPINVOKE.SWIGPendingException.Pending)
     {
         throw MeCabPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #14
0
ファイル: Tagger.cs プロジェクト: zyxPaiDaxing/mecab
 public virtual void set_theta(float theta)
 {
     MeCabPINVOKE.Tagger_set_theta(swigCPtr, theta);
     if (MeCabPINVOKE.SWIGPendingException.Pending)
     {
         throw MeCabPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #15
0
ファイル: Lattice.cs プロジェクト: zyxPaiDaxing/mecab
 public virtual void remove_request_type(int request_type)
 {
     MeCabPINVOKE.Lattice_remove_request_type(swigCPtr, request_type);
     if (MeCabPINVOKE.SWIGPendingException.Pending)
     {
         throw MeCabPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #16
0
ファイル: Tagger.cs プロジェクト: zyxPaiDaxing/mecab
 public virtual void set_lattice_level(int level)
 {
     MeCabPINVOKE.Tagger_set_lattice_level(swigCPtr, level);
     if (MeCabPINVOKE.SWIGPendingException.Pending)
     {
         throw MeCabPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #17
0
        public virtual bool swap(Model model)
        {
            bool ret = MeCabPINVOKE.Model_swap(swigCPtr, Model.getCPtr(model));

            if (MeCabPINVOKE.SWIGPendingException.Pending)
            {
                throw MeCabPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #18
0
ファイル: Tagger.cs プロジェクト: zyxPaiDaxing/mecab
        public virtual string parseNBest(uint N, string str)
        {
            string ret = MeCabPINVOKE.Tagger_parseNBest(swigCPtr, N, str);

            if (MeCabPINVOKE.SWIGPendingException.Pending)
            {
                throw MeCabPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #19
0
ファイル: Tagger.cs プロジェクト: zyxPaiDaxing/mecab
        public virtual bool parse(Lattice lattice)
        {
            bool ret = MeCabPINVOKE.Tagger_parse__SWIG_1(swigCPtr, Lattice.getCPtr(lattice));

            if (MeCabPINVOKE.SWIGPendingException.Pending)
            {
                throw MeCabPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #20
0
ファイル: Tagger.cs プロジェクト: zyxPaiDaxing/mecab
        public static bool parse(Model model, Lattice lattice)
        {
            bool ret = MeCabPINVOKE.Tagger_parse__SWIG_0(Model.getCPtr(model), Lattice.getCPtr(lattice));

            if (MeCabPINVOKE.SWIGPendingException.Pending)
            {
                throw MeCabPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #21
0
ファイル: Tagger.cs プロジェクト: zyxPaiDaxing/mecab
        public string parseToString(string str)
        {
            string ret = MeCabPINVOKE.Tagger_parseToString__SWIG_1(swigCPtr, str);

            if (MeCabPINVOKE.SWIGPendingException.Pending)
            {
                throw MeCabPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #22
0
        public virtual int transition_cost(ushort rcAttr, ushort lcAttr)
        {
            int ret = MeCabPINVOKE.Model_transition_cost(swigCPtr, rcAttr, lcAttr);

            if (MeCabPINVOKE.SWIGPendingException.Pending)
            {
                throw MeCabPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #23
0
ファイル: Tagger.cs プロジェクト: zyxPaiDaxing/mecab
        public virtual float theta()
        {
            float ret = MeCabPINVOKE.Tagger_theta(swigCPtr);

            if (MeCabPINVOKE.SWIGPendingException.Pending)
            {
                throw MeCabPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #24
0
ファイル: Tagger.cs プロジェクト: zyxPaiDaxing/mecab
        public virtual int lattice_level()
        {
            int ret = MeCabPINVOKE.Tagger_lattice_level(swigCPtr);

            if (MeCabPINVOKE.SWIGPendingException.Pending)
            {
                throw MeCabPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #25
0
        public static string version()
        {
            string ret = MeCabPINVOKE.Model_version();

            if (MeCabPINVOKE.SWIGPendingException.Pending)
            {
                throw MeCabPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #26
0
ファイル: Tagger.cs プロジェクト: zyxPaiDaxing/mecab
        public virtual string what()
        {
            string ret = MeCabPINVOKE.Tagger_what(swigCPtr);

            if (MeCabPINVOKE.SWIGPendingException.Pending)
            {
                throw MeCabPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #27
0
ファイル: Tagger.cs プロジェクト: zyxPaiDaxing/mecab
        public virtual bool parseNBestInit(string str)
        {
            bool ret = MeCabPINVOKE.Tagger_parseNBestInit(swigCPtr, str);

            if (MeCabPINVOKE.SWIGPendingException.Pending)
            {
                throw MeCabPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #28
0
ファイル: Tagger.cs プロジェクト: zyxPaiDaxing/mecab
        public virtual string formatNode(Node node)
        {
            string ret = MeCabPINVOKE.Tagger_formatNode(swigCPtr, Node.getCPtr(node));

            if (MeCabPINVOKE.SWIGPendingException.Pending)
            {
                throw MeCabPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #29
0
ファイル: Tagger.cs プロジェクト: zyxPaiDaxing/mecab
        public virtual bool all_morphs()
        {
            bool ret = MeCabPINVOKE.Tagger_all_morphs(swigCPtr);

            if (MeCabPINVOKE.SWIGPendingException.Pending)
            {
                throw MeCabPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #30
0
ファイル: Tagger.cs プロジェクト: zyxPaiDaxing/mecab
        public virtual int request_type()
        {
            int ret = MeCabPINVOKE.Tagger_request_type(swigCPtr);

            if (MeCabPINVOKE.SWIGPendingException.Pending)
            {
                throw MeCabPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }