Ejemplo n.º 1
0
 public LemmaRule(Latino.BinarySerializer binRead, LemmatizerSettings lsett)
 {
     Load(binRead, lsett);
 }
Ejemplo n.º 2
0
 public Lemmatizer(StreamReader srIn, string sFormat, LemmatizerSettings lsett) : this(lsett)
 {
     AddMultextFile(srIn, sFormat);
 }
Ejemplo n.º 3
0
 public LemmaRule(BinaryReader binRead, LemmatizerSettings lsett)
 {
     this.Deserialize(binRead, lsett);
 }
Ejemplo n.º 4
0
 public LemmaExample(BinaryReader binRead, LemmatizerSettings lsett, LemmaRule lrRule)
 {
     Deserialize(binRead, lsett, lrRule);
 }
Ejemplo n.º 5
0
 public LemmaExample(Latino.BinarySerializer binRead, LemmatizerSettings lsett, LemmaRule lrRule)
 {
     Load(binRead, lsett, lrRule);
 }
Ejemplo n.º 6
0
 public ExampleList(Latino.BinarySerializer binRead, LemmatizerSettings lsett)
 {
     Load(binRead, lsett);
 }
Ejemplo n.º 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;
        }
Ejemplo n.º 8
0
 public ExampleList(BinaryReader binRead, LemmatizerSettings lsett)
 {
     Deserialize(binRead, lsett);
 }
Ejemplo n.º 9
0
 public LemmaTreeNode(Latino.BinarySerializer binRead, LemmatizerSettings lsett, ExampleList elExamples, LemmaTreeNode ltnParentNode)
 {
     Load(binRead, lsett, elExamples, ltnParentNode);
 }
Ejemplo n.º 10
0
 public LemmaTreeNode(BinaryReader binRead, LemmatizerSettings lsett, ExampleList elExamples, LemmaTreeNode ltnParentNode)
 {
     Deserialize(binRead, lsett, elExamples, ltnParentNode);
 }
Ejemplo n.º 11
0
 public LemmaTreeNode(LemmatizerSettings lsett, ExampleList elExamples)
     : this(lsett, elExamples, 0, elExamples.Count - 1, null)
 {
 }
Ejemplo n.º 12
0
        // Constructor(s) & Destructor(s) -------------------

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