示例#1
0
 public LemmaRule(Latino.BinarySerializer binRead, LemmatizerSettings lsett)
 {
     Load(binRead, lsett);
 }
示例#2
0
 public Lemmatizer(StreamReader srIn, string sFormat, LemmatizerSettings lsett) : this(lsett)
 {
     AddMultextFile(srIn, sFormat);
 }
示例#3
0
 public LemmaRule(BinaryReader binRead, LemmatizerSettings lsett)
 {
     this.Deserialize(binRead, lsett);
 }
示例#4
0
 public LemmaExample(BinaryReader binRead, LemmatizerSettings lsett, LemmaRule lrRule)
 {
     Deserialize(binRead, lsett, lrRule);
 }
示例#5
0
 public LemmaExample(Latino.BinarySerializer binRead, LemmatizerSettings lsett, LemmaRule lrRule)
 {
     Load(binRead, lsett, lrRule);
 }
示例#6
0
 public ExampleList(Latino.BinarySerializer binRead, LemmatizerSettings lsett)
 {
     Load(binRead, lsett);
 }
示例#7
0
        // Constructor(s) & Destructor(s) ---------

        public LemmaExample(string sWord, string sLemma, double dWeight, string sMsd, RuleList rlRules, LemmatizerSettings lsett)
        {
            this.lsett = lsett;

            this.sWord   = sWord;
            this.sLemma  = sLemma;
            this.sMsd    = sMsd;
            this.dWeight = dWeight;
            this.lrRule  = rlRules.AddRule(this);

            switch (lsett.eMsdConsider)
            {
            case LemmatizerSettings.MsdConsideration.Ignore:
            case LemmatizerSettings.MsdConsideration.JoinAll:
            case LemmatizerSettings.MsdConsideration.JoinDistinct:
            case LemmatizerSettings.MsdConsideration.JoinSameSubstring:
                sSignature = "[" + sWord + "]==>[" + sLemma + "]";
                break;

            case LemmatizerSettings.MsdConsideration.Distinct:
            default:
                sSignature = "[" + sWord + "]==>[" + sLemma + "](" + (sMsd ?? "") + ")";
                break;
            }

            this.sWordRearCache   = null;
            this.sWordFrontCache  = null;
            this.sLemmaFrontCache = null;
        }
示例#8
0
 public ExampleList(BinaryReader binRead, LemmatizerSettings lsett)
 {
     Deserialize(binRead, lsett);
 }
示例#9
0
 public LemmaTreeNode(Latino.BinarySerializer binRead, LemmatizerSettings lsett, ExampleList elExamples, LemmaTreeNode ltnParentNode)
 {
     Load(binRead, lsett, elExamples, ltnParentNode);
 }
示例#10
0
 public LemmaTreeNode(BinaryReader binRead, LemmatizerSettings lsett, ExampleList elExamples, LemmaTreeNode ltnParentNode)
 {
     Deserialize(binRead, lsett, elExamples, ltnParentNode);
 }
示例#11
0
 public LemmaTreeNode(LemmatizerSettings lsett, ExampleList elExamples)
     : this(lsett, elExamples, 0, elExamples.Count - 1, null)
 {
 }
示例#12
0
        // Constructor(s) & Destructor(s) -------------------

        private LemmaTreeNode(LemmatizerSettings lsett)
        {
            this.lsett = lsett;
        }