Example #1
0
        internal Wildcard(Match.MatchOptions options, Match.MatchParameter parameter)
        {
            _Options = options.Clone();
            _Options.SynonymOutput  = false;
            _Options.WildcardOutput = false;

            _Parameter = parameter.Clone();
        }
        internal Wildcard(Match.MatchOptions options, Match.MatchParameter parameter)
        {
            _Options = options.Clone();
            _Options.SynonymOutput = false;
            _Options.WildcardOutput = false;

            _Parameter = parameter.Clone();
        }
Example #3
0
            public WildcardInfo(string wildcard, Segment segment,
                                Match.MatchOptions options, Match.MatchParameter parameter)
            {
                this.Key = wildcard.ToLower();

                this.Segments.Add(new WordInfo(wildcard, POS.POS_UNK, 0));

                foreach (WordInfo wordInfo in segment.DoSegment(wildcard, options, parameter))
                {
                    if (wordInfo.Word != wildcard)
                    {
                        this.Segments.Add(wordInfo);
                    }
                }
            }
Example #4
0
        public Match.MatchOptions GetOptionsCopy()
        {
            Match.MatchOptions options = new Match.MatchOptions();

            options.ChineseNameIdentify         = this.MatchOptions.ChineseNameIdentify;
            options.FrequencyFirst              = this.MatchOptions.FrequencyFirst;
            options.MultiDimensionality         = this.MatchOptions.MultiDimensionality;
            options.FilterStopWords             = this.MatchOptions.FilterStopWords;
            options.IgnoreSpace                 = this.MatchOptions.IgnoreSpace;
            options.ForceSingleWord             = this.MatchOptions.ForceSingleWord;
            options.TraditionalChineseEnabled   = this.MatchOptions.TraditionalChineseEnabled;
            options.OutputSimplifiedTraditional = this.MatchOptions.OutputSimplifiedTraditional;

            return(options);
        }