Exemplo n.º 1
0
        public override Annotation <TOffset> UpdateOutput(TData data, Annotation <TOffset> ann,
                                                          IFstOperations <TData, TOffset> operations)
        {
            Range <TOffset> range = operations.Insert(data, ann, FeatureStruct);

            return(data.Annotations.Add(range, FeatureStruct));
        }
Exemplo n.º 2
0
 public DeterministicFstTraversalMethod(IFstOperations <TData, TOffset> operations, Direction dir, Func <Annotation <TOffset>, bool> filter, State <TData, TOffset> startState, TData data, bool endAnchor,
                                        bool unification, bool useDefaults)
     : base(dir, filter, startState, data, endAnchor, unification, useDefaults)
 {
     _operations = operations;
 }
Exemplo n.º 3
0
 public override Annotation <TOffset> UpdateOutput(TData data, Annotation <TOffset> ann, IFstOperations <TData, TOffset> operations)
 {
     return(null);
 }
Exemplo n.º 4
0
 public override Annotation <TOffset> UpdateOutput(TData data, Annotation <TOffset> ann, IFstOperations <TData, TOffset> operations)
 {
     ann.FeatureStruct.Clear();
     ann.FeatureStruct.PriorityUnion(FeatureStruct);
     operations.Replace(data, ann);
     return(null);
 }
Exemplo n.º 5
0
 public override Annotation <TOffset> UpdateOutput(TData data, Annotation <TOffset> ann, IFstOperations <TData, TOffset> operations)
 {
     ann.Remove(false);
     operations.Remove(data, ann.Span);
     return(null);
 }
Exemplo n.º 6
0
 public abstract Annotation <TOffset> UpdateOutput(TData data, Annotation <TOffset> ann, IFstOperations <TData, TOffset> operations);