Genpact AP Knowledge Center

Support

Culture Resolution Configuration

V1.1

Overview

The culture-resolution.yaml configuration file defines the language and style for the numeric and date format data in the system. If the DocIntel extracts and auto detects the numeric and date format of the extracted data, then the system picks the auto converted values as is, ensuring that the values are populated correctly in the Eyeball screen according to the culture format.

Template

kind: ruleSet 
metadata: 
  name: extraction/v1/documents/culture-resolution 
spec: 
  nodes: 
  - if: 'it["Country"] == "US"' 
    then: 
      culture: en-US 

  - if: 'it["Country"] == "USA"' 
    then: 
      culture: en-US 

  - if: 'it["Country"] == "Germany"' 
    then: 
      culture: de-DE 

  - if: true 
    then: 
      culture: null 

  - if: 1==1 
    then: 
      culture: null
			
ParameterDescription
If thenThe condition based on which culture is decided.
CultureThe language and style for the data in the system.
If 1==1The system doesn't convert the values, and picks the auto converted values from the DocIntel.

For example, in the above template:

 - if: 'it["Country"] == "US"' 
    then: 
      culture: en-US

 If the country is US, then the culture chosen is en-US.

V1.0

Overview

The culture-resolution.yaml configuration file defines the language and style for the data in the system.

Template

kind: ruleSet 
metadata: 
  name: extraction/v1/documents/culture-resolution 
spec: 
  nodes: 
  - if: 'it["Country"] == "US"' 
    then: 
      culture: en-US 

  - if: 'it["Country"] == "USA"' 
    then: 
      culture: en-US 

  - if: 'it["Country"] == "Germany"' 
    then: 
      culture: de-DE 

  - if: true 
    then: 
      culture: null 
ParameterDescription
If thenThe condition based on which culture is decided.
CultureThe language and style for the data in the system.

For example, in the above template:

 - if: 'it["Country"] == "US"' 
    then: 
      culture: en-US

 If the country is US, then the culture chosen is en-US.