Class StringAutomaton
Represents a weighted finite state automaton defined on String.
Inheritance
StringAutomaton
Implements
Inherited Members
Automaton<String, Char, ImmutableDiscreteChar, StringManipulator, StringAutomaton>.MaxDeadStateCount
Automaton<String, Char, ImmutableDiscreteChar, StringManipulator, StringAutomaton>.WithGroupsClear()
Automaton<String, Char, ImmutableDiscreteChar, StringManipulator, StringAutomaton>.NormalizeValues()
Automaton<String, Char, ImmutableDiscreteChar, StringManipulator, StringAutomaton>.TryComputePoint()
Namespace: Microsoft.ML.Probabilistic.Distributions.Automata
Assembly: Microsoft.ML.Probabilistic.dll
Syntax
[Serializable]
public class StringAutomaton : Automaton<string, char, ImmutableDiscreteChar, StringManipulator, StringAutomaton>, WeightFunctions<string, char, ImmutableDiscreteChar, StringManipulator, StringAutomaton>.IWeightFunction<StringAutomaton>, WeightFunctions<string, char, ImmutableDiscreteChar, StringManipulator, StringAutomaton>.IWeightFunction, IEquatable<StringAutomaton>
Constructors
StringAutomaton()
Declaration
public StringAutomaton()
Methods
GetOutgoingTransitionsForDeterminization(Automaton<String, Char, ImmutableDiscreteChar, StringManipulator, StringAutomaton>.Determinization.WeightedStateSet)
Computes a set of outgoing transitions from a given state of the determinization result.
Declaration
protected override IEnumerable<Automaton<string, char, ImmutableDiscreteChar, StringManipulator, StringAutomaton>.Determinization.OutgoingTransition> GetOutgoingTransitionsForDeterminization(Automaton<string, char, ImmutableDiscreteChar, StringManipulator, StringAutomaton>.Determinization.WeightedStateSet sourceStateSet)
Parameters
Type | Name | Description |
---|---|---|
Automaton.Determinization.WeightedStateSet<> | sourceStateSet | The source state of the determinized automaton represented as a set of (stateId, weight) pairs, where state ids correspond to states of the original automaton. |
Returns
Type | Description |
---|---|
IEnumerable<Automaton.Determinization.OutgoingTransition<>> | A collection of (element distribution, weight, weighted state set) triples corresponding to outgoing
transitions from |
Overrides
Microsoft.ML.Probabilistic.Distributions.Automata.Automaton<System.String, System.Char, Microsoft.ML.Probabilistic.Distributions.ImmutableDiscreteChar, Microsoft.ML.Probabilistic.Distributions.Automata.StringManipulator, Microsoft.ML.Probabilistic.Distributions.Automata.StringAutomaton>.GetOutgoingTransitionsForDeterminization(Microsoft.ML.Probabilistic.Distributions.Automata.Automaton.Determinization.WeightedStateSet<>)
Read(BinaryReader)
Reads an automaton from.
Declaration
public static StringAutomaton Read(BinaryReader reader)
Parameters
Type | Name | Description |
---|---|---|
BinaryReader | reader |
Returns
Type | Description |
---|---|
StringAutomaton |
Write(BinaryWriter)
Writes the current automaton.
Declaration
public void Write(BinaryWriter writer)
Parameters
Type | Name | Description |
---|---|---|
BinaryWriter | writer |