public sealed class FormExtractionParams : IMessage<FormExtractionParams>, IEquatable<FormExtractionParams>, IDeepCloneable<FormExtractionParams>, IBufferMessage, IMessage
Parameters to control form extraction behavior.
Implements
IMessage<FormExtractionParams>, IEquatable<FormExtractionParams>, IDeepCloneable<FormExtractionParams>, IBufferMessage, IMessageNamespace
Google.Cloud.DocumentAI.V1Beta2Assembly
Google.Cloud.DocumentAI.V1Beta2.dll
Constructors
FormExtractionParams()
public FormExtractionParams()
FormExtractionParams(FormExtractionParams)
public FormExtractionParams(FormExtractionParams other)
Parameter | |
---|---|
Name | Description |
other | FormExtractionParams |
Properties
Enabled
public bool Enabled { get; set; }
Whether to enable form extraction.
Property Value | |
---|---|
Type | Description |
Boolean |
KeyValuePairHints
public RepeatedField<KeyValuePairHint> KeyValuePairHints { get; }
User can provide pairs of (key text, value type) to improve the parsing result.
For example, if a document has a field called "Date" that holds a date value and a field called "Amount" that may hold either a currency value (e.g., "$500.00") or a simple number value (e.g., "20"), you could use the following hints: [ {"key": "Date", value_types: [ "DATE"]}, {"key": "Amount", "value_types": [ "PRICE", "NUMBER" ]} ]
If the value type is unknown, but you want to provide hints for the keys, you can leave the value_types field blank. e.g. {"key": "Date", "value_types": []}
Property Value | |
---|---|
Type | Description |
RepeatedField<KeyValuePairHint> |
ModelVersion
public string ModelVersion { get; set; }
Model version of the form extraction system. Default is "builtin/stable". Specify "builtin/latest" for the latest model. For custom form models, specify: “custom/{model_name}". Model name format is "bucket_name/path/to/modeldir" corresponding to "gs://bucket_name/path/to/modeldir" where annotated examples are stored.
Property Value | |
---|---|
Type | Description |
String |