Struct gapi_grpc::google::cloud::documentai::v1beta2::FormExtractionParams[][src]

pub struct FormExtractionParams {
    pub enabled: bool,
    pub key_value_pair_hints: Vec<KeyValuePairHint>,
    pub model_version: String,
}

Parameters to control form extraction behavior.

Fields

enabled: bool

Whether to enable form extraction.

key_value_pair_hints: Vec<KeyValuePairHint>

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”: []}

model_version: String

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.

Trait Implementations

impl Clone for FormExtractionParams[src]

impl Debug for FormExtractionParams[src]

impl Default for FormExtractionParams[src]

impl Message for FormExtractionParams[src]

impl PartialEq<FormExtractionParams> for FormExtractionParams[src]

impl StructuralPartialEq for FormExtractionParams[src]

Auto Trait Implementations

impl RefUnwindSafe for FormExtractionParams

impl Send for FormExtractionParams

impl Sync for FormExtractionParams

impl Unpin for FormExtractionParams

impl UnwindSafe for FormExtractionParams

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]