Ejemplo n.º 1
0
        public AffixProcessRule()
        {
            _allomorphs = new ObservableCollection <AffixProcessAllomorph>();
            _allomorphs.CollectionChanged += AllomorphsChanged;

            MaxApplicationCount            = 1;
            Blockable                      = true;
            RequiredSyntacticFeatureStruct = FeatureStruct.New().Value;
            OutSyntacticFeatureStruct      = FeatureStruct.New().Value;
            _obligatorySyntacticFeatures   = new IDBearerSet <Feature>();
        }
Ejemplo n.º 2
0
        public AffixProcessRule()
        {
            _allomorphs = new ObservableCollection<AffixProcessAllomorph>();
            _allomorphs.CollectionChanged += AllomorphsChanged;

            MaxApplicationCount = 1;
            Blockable = true;
            RequiredSyntacticFeatureStruct = FeatureStruct.New().Value;
            OutSyntacticFeatureStruct = FeatureStruct.New().Value;
            _obligatorySyntacticFeatures = new IDBearerSet<Feature>();
        }
Ejemplo n.º 3
0
        public CompoundingRule()
        {
            MaxApplicationCount = 1;
            Blockable = true;
            HeadRequiredSyntacticFeatureStruct = FeatureStruct.New().Value;
            NonHeadRequiredSyntacticFeatureStruct = FeatureStruct.New().Value;
            OutSyntacticFeatureStruct = FeatureStruct.New().Value;

            _subrules = new List<CompoundingSubrule>();

            _obligatorySyntacticFeatures = new IDBearerSet<Feature>();
        }
Ejemplo n.º 4
0
        public CompoundingRule()
        {
            MaxApplicationCount = 1;
            Blockable           = true;
            HeadRequiredSyntacticFeatureStruct    = FeatureStruct.New().Value;
            NonHeadRequiredSyntacticFeatureStruct = FeatureStruct.New().Value;
            OutSyntacticFeatureStruct             = FeatureStruct.New().Value;

            _subrules = new List <CompoundingSubrule>();

            _obligatorySyntacticFeatures = new IDBearerSet <Feature>();
        }
Ejemplo n.º 5
0
 public Word(RootAllomorph rootAllomorph, FeatureStruct realizationalFS)
 {
     _allomorphs  = new Dictionary <string, Allomorph>();
     _mprFeatures = new MprFeatureSet();
     _shape       = rootAllomorph.Segments.Shape.DeepClone();
     ResetDirty();
     SetRootAllomorph(rootAllomorph);
     RealizationalFeatureStruct = realizationalFS;
     _mrules                      = new Stack <IMorphologicalRule>();
     _mrulesUnapplied             = new Dictionary <IMorphologicalRule, int>();
     _mrulesApplied               = new Dictionary <IMorphologicalRule, int>();
     _nonHeads                    = new Stack <Word>();
     _obligatorySyntacticFeatures = new IDBearerSet <Feature>();
     _isLastAppliedRuleFinal      = null;
 }
Ejemplo n.º 6
0
 public Word(Stratum stratum, Shape shape)
 {
     _allomorphs = new Dictionary <string, Allomorph>();
     Stratum     = stratum;
     _shape      = shape;
     ResetDirty();
     SyntacticFeatureStruct     = new FeatureStruct();
     RealizationalFeatureStruct = new FeatureStruct();
     _mprFeatures                 = new MprFeatureSet();
     _mrules                      = new Stack <IMorphologicalRule>();
     _mrulesUnapplied             = new Dictionary <IMorphologicalRule, int>();
     _mrulesApplied               = new Dictionary <IMorphologicalRule, int>();
     _nonHeads                    = new Stack <Word>();
     _obligatorySyntacticFeatures = new IDBearerSet <Feature>();
     _isLastAppliedRuleFinal      = null;
     _isPartial                   = false;
 }
Ejemplo n.º 7
0
 protected Word(Word word)
 {
     _allomorphs                  = new Dictionary <string, Allomorph>(word._allomorphs);
     Stratum                      = word.Stratum;
     _shape                       = word._shape.DeepClone();
     _rootAllomorph               = word._rootAllomorph;
     SyntacticFeatureStruct       = word.SyntacticFeatureStruct.DeepClone();
     RealizationalFeatureStruct   = word.RealizationalFeatureStruct.DeepClone();
     _mprFeatures                 = word.MprFeatures.DeepClone();
     _mrules                      = new Stack <IMorphologicalRule>(word._mrules.Reverse());
     _mrulesUnapplied             = new Dictionary <IMorphologicalRule, int>(word._mrulesUnapplied);
     _mrulesApplied               = new Dictionary <IMorphologicalRule, int>(word._mrulesApplied);
     _nonHeads                    = new Stack <Word>(word._nonHeads.Reverse().DeepClone());
     _obligatorySyntacticFeatures = new IDBearerSet <Feature>(word._obligatorySyntacticFeatures);
     _isLastAppliedRuleFinal      = word._isLastAppliedRuleFinal;
     _isPartial                   = word._isPartial;
     CurrentTrace                 = word.CurrentTrace;
 }
Ejemplo n.º 8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FeatureSystem"/> class.
 /// </summary>
 public FeatureSystem()
 {
     _features = new IDBearerSet <Feature>();
 }
Ejemplo n.º 9
0
 internal PossibleSymbolCollection(IEnumerable <FeatureSymbol> symbols)
 {
     _symbols = new IDBearerSet <FeatureSymbol>(symbols);
 }