コード例 #1
0
ファイル: LemmaRule.cs プロジェクト: stuartd/LemmaGenerator
 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
ファイル: LemmaRule.cs プロジェクト: stuartd/LemmaGenerator
 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
ファイル: ExampleList.cs プロジェクト: stuartd/LemmaGenerator
 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
ファイル: ExampleList.cs プロジェクト: stuartd/LemmaGenerator
 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;
        }