public sealed class Dictionary : IMessage<Dictionary>, IEquatable<Dictionary>, IDeepCloneable<Dictionary>, IBufferMessage, IMessageReference documentation and code samples for the Model Armor v1 API class Dictionary.
Message defining a custom dictionary of words or phrases for syntactic match.
Dictionary words are case-insensitive and all characters other than letters
and digits in the unicode Basic Multilingual
Plane
will be replaced with whitespace when scanning for matches. For example, the
dictionary phrase Sam Johnson will match all three phrases sam johnson,
Sam, Johnson, and Sam (Johnson). Additionally, the characters
surrounding any match must be of a different type than the adjacent
characters within the word, so letters must be next to non-letters and
digits must be next to non-digits. For example, the dictionary word jen
will match the first three letters of the text jen123 but will return no
matches for jennifer.
Dictionary words containing a large number of characters that are not letters or digits may result in unexpected matches because such characters are treated as whitespace. For details about the size limits of dictionaries, see Quotas and limits.
Implements
IMessageDictionary, IEquatableDictionary, IDeepCloneableDictionary, IBufferMessage, IMessageNamespace
Google.Cloud.ModelArmor.V1Assembly
Google.Cloud.ModelArmor.V1.dll
Constructors
Dictionary()
public Dictionary()Dictionary(Dictionary)
public Dictionary(Dictionary other)| Parameter | |
|---|---|
| Name | Description |
other |
Dictionary |
Properties
SourceCase
public Dictionary.SourceOneofCase SourceCase { get; }| Property Value | |
|---|---|
| Type | Description |
DictionarySourceOneofCase |
|
WordList
public WordList WordList { get; set; }Message defining a list of words or phrases.
| Property Value | |
|---|---|
| Type | Description |
WordList |
|