예제 #1
0
        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);
        }
예제 #2
0
        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);
        }
예제 #3
0
        public virtual Node lookup(string begin, string end, Lattice lattice)
        {
            IntPtr cPtr = MeCabPINVOKE.Model_lookup(swigCPtr, begin, end, Lattice.getCPtr(lattice));
            Node   ret  = (cPtr == IntPtr.Zero) ? null : new Node(cPtr, false);

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