Esempio n. 1
0
        public void Run(string text, bool splitBySmiles, ProcessSentCallbackDelegate processSentCallback)
        {
            _OuterProcessSentCallback_Delegate = processSentCallback;

            fixed(char *_base = text)
            {
                _BASE = _base;

                _SentSplitter.SplitBySmiles = splitBySmiles;
                _SentSplitter.AllocateSents(text, _SentSplitterProcessSentCallback_Delegate);
            }

            _OuterProcessSentCallback_Delegate = null;
        }
        public void run(string text, bool splitBySmiles, ProcessSentCallbackDelegate processSentCallback)
        {
            _ProcessSentCallback = processSentCallback;

            fixed(char *_base = text)
            fixed(CharType * ctm     = xlat.CHARTYPE_MAP)
            fixed(NERCharType * nctm = NER_CHARTYPE_MAP)
            {
                _BASE = _base;
                _CTM  = ctm;
                _NCTM = nctm;

                _SentSplitter.SplitBySmiles = splitBySmiles;
                _SentSplitter.AllocateSents(text, ProcessSentSplitterCallback);
            }

            _ProcessSentCallback = null;
        }