зеркало из https://github.com/dotnet/infer.git
This commit is contained in:
Родитель
5d8f736006
Коммит
662cd94e60
|
@ -1498,7 +1498,8 @@ namespace Microsoft.ML.Probabilistic.Distributions
|
|||
Letter = 1 << 4,
|
||||
LetterOrDigit = 1 << 5,
|
||||
WordChar = 1 << 6,
|
||||
Uniform = 1 << 7,
|
||||
CompleteWordChar = 1 << 7,
|
||||
Uniform = 1 << 8,
|
||||
}
|
||||
|
||||
public static CharClasses GetImpliedCharClasses(CharClasses charClass)
|
||||
|
@ -1519,6 +1520,8 @@ namespace Microsoft.ML.Probabilistic.Distributions
|
|||
return CharClasses.LetterOrDigit | GetImpliedCharClasses(CharClasses.WordChar);
|
||||
case CharClasses.WordChar:
|
||||
return CharClasses.WordChar | GetImpliedCharClasses(CharClasses.Uniform);
|
||||
case CharClasses.CompleteWordChar:
|
||||
return CharClasses.CompleteWordChar | GetImpliedCharClasses(CharClasses.Uniform);
|
||||
case CharClasses.Uniform:
|
||||
return CharClasses.Uniform;
|
||||
default:
|
||||
|
|
Загрузка…
Ссылка в новой задаче