Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The token can be got by Generating a Geodi GEODI Token.

Recognize

DefinitionReturns the entries found by browsers 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.
HttpMethodGET, POST
Expected Errors

401 Unauthorized access / Access denied

403 Forbidden

511 Network Authentication Required

501 Server Error

Result value


Code Block
{
	"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


Code Block
//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
Iframe
srchttps://rawcdn.githack.com/decesw/html/master/DataExtractionApi.html
frameborderhide
stylewidth:100%;border:1px solid #ccc
height600px


...