Geodi Data Extraction API - Text Recognition Method

Geodi Data Extraction API - Text Recognition Method

The token can be got by Generating a GEODI Token.

Recognize

Recognize

Definition

Returns the entries found by scanners in the existing workspace for user-supplied text.

Request

[GEODIURL]/DataExtractionHandler?op=Recognize&wsName=[WSNAME]&Text=[Text]&UserSession=[TOKEN]


  • wsName: Workspace Name

  • Text: Text to be inspected.

HttpMethod

GET, POST

Expected Errors

401 Unauthorized access / Access denied

403 Forbidden

511 Network Authentication Required

501 Server Error

Result value

{ "ElapsedMilliseconds":0, "Entries": [ { "OriginalText":"", "Text":"", "StartIndex":0, "Length":1, "Filter":null } ] }
  • ElapsedMilliseconds: ms is spent for recognition.

  • Entries: List of entrances recognized by GEODI.

    • OriginalText: A piece of text where recognition occurs

    • Text: The text of the recognition made within the text.

    • StartIndex: OriginalText's starting position within the text. (starting from 0)

    • Length: OriginalText's length

    • Filter: The value created for the entry, if any.

      • StartDouble: The beginning of the value range.

      • EndDouble: End of range.

      • IsFixedValue: Whether the value is constant. False is a range value.

      • RecognizerID: ID of the recognizer that recognizes the word.

      • ValueTypeCode: Enum value corresponding to the value type. The word value type equivalents of these enum values are as follows:

        • 0: Empty

        • 1: Object

        • 2: DBNull

        • 3: Boolean

        • 4: Char

        • 5: SByte (-128, 127)

        • 6: Byte (0, 255)

        • 7: Int16 (-32768, 32767)

        • 8: UInt16 (0, 65535)

        • 9: Int32 (-2147483648, 2147483647)

        • 10: UInt32 (0, 4294967295)

        • 11: Int64 (-9223372036854775808, 9223372036854775807)

        • 12: UInt64 (0, 18446744073709551615)

        • 13: Single

        • 14: Double

        • 15: Decimal

        • 16: DateTime

        • 18: String

Example

//Request : [GEODIURL]/DataExtractionHandler?op=Recognize&wsName=PROJE&Text=10 blocks in 20th parcel { "ElapsedMilliseconds":0, "Entries": [ { "OriginalText":"10 blocks in 20th parcel", "Text":"10 blocks in 20 parcels", "StartIndex":0, "Length":20, "Filter":null } ] }

Example Applications