File size: 7,511 Bytes
142a372
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
567930d
142a372
 
 
 
 
 
 
 
 
 
 
 
 
 
567930d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
prompt_author: Will Weaver          
prompt_author_institution: University of Michigan    
prompt_name: SLTPvA_long
prompt_version: v-1-0      
prompt_description: Prompt developed by the University of Michigan. 
    SLTPvA prompts all have standardized column headers (fields) that were chosen due to their reliability and prevalence in herbarium records.
    All field descriptions are based on the official Darwin Core guidelines.     
    SLTPvA_long - The most verbose prompt option. Descriptions closely follow DwC guides. Detailed rules for the LLM to follow. Works best with double or triple OCR to increase attention back to the OCR (select 'use both OCR models' or 'handwritten + printed' along with trOCR).
    SLTPvA_medium - Shorter verion of _long. 
    SLTPvA_short - The least verbose possible prompt while still providing rules and DwC descriptions. 
LLM: General Purpose
instructions: 1. Refactor the unstructured OCR text into a dictionary based on the JSON structure outlined below.
  2. Map the unstructured OCR text to the appropriate JSON key and populate the field given the user-defined rules.
  3. JSON key values are permitted to remain empty strings if the corresponding information is not found in the unstructured OCR text.
  4. Duplicate dictionary fields are not allowed.
  5. Ensure all JSON keys are in camel case.
  6. Ensure new JSON field values follow sentence case capitalization.
  7. Ensure all key-value pairs in the JSON dictionary strictly adhere to the format and data types specified in the template.
  8. Ensure output JSON string is valid JSON format. It should not have trailing commas or unquoted keys.
  9. Only return a JSON dictionary represented as a string. You should not explain your answer.
json_formatting_instructions: This section provides rules for formatting each JSON value organized by the JSON key.
rules:
  catalogNumber: Barcode identifier, typically a number with at least 6 digits, but fewer than 30 digits.
  order: The full scientific name of the order in which the taxon is classified. Order must be capitalized. 
  family: The full scientific name of the family in which the taxon is classified. Family must be capitalized. 
  scientificName: The scientific name of the taxon including genus, specific epithet, 
      and any lower classifications.
  scientificNameAuthorship: The authorship information for the scientificName formatted according to the conventions of the applicable Darwin Core nomenclaturalCode.
  genus: Taxonomic determination to genus. Genus must be capitalized. If
      genus is not present use the taxonomic family name followed by the word 'indet'.
  specificEpithet: The name of the first or species epithet of the scientificName. Only include the species epithet.
  identifiedBy: A comma separated list of names of people, groups, or organizations who assigned the taxon to the subject organism. This is not the specimen collector. 
  recordedBy: A comma separated list of names of people, groups, or organizations responsible for observing, recording, collecting, or presenting the original specimen. 
      The primary collector or observer should be listed first. 
  recordNumber: An identifier given to the occurrence at the time it was recorded. 
      Often serves as a link between field notes and an occurrence record, such as a specimen collector's number.
  verbatimEventDate: The verbatim original representation of the date and time information for when the specimen was collected.
      Date of collection exactly as it appears on the label. Do not change
      the format or correct typos.
  eventDate: Date the specimen was collected formatted as year-month-day, YYYY-MM_DD. If
      specific components of the date are unknown, they should be replaced with
      zeros. Examples "0000-00-00" if the entire date is unknown, "YYYY-00-00"
      if only the year is known, and "YYYY-MM-00" if year and month are known
      but day is not.
  habitat: A category or description of the habitat in which the specimen collection event occurred.
  occurrenceRemarks: Text describing the specimen's geographic location. Text describing the appearance of the specimen. 
      A statement about the presence or absence of a taxon at a the collection location. 
      Text describing the significance of the specimen, such as a specific expedition or notable collection. 
      Description of plant features such as leaf shape, size, color,
      stem texture, height, flower structure, scent, fruit or seed characteristics,
      root system type, overall growth habit and form, any notable aroma or secretions,
      presence of hairs or bristles, and any other distinguishing morphological
      or physiological characteristics.
  country: The name of the country or major administrative unit in which the specimen was originally collected.
  stateProvince: The name of the next smaller administrative region than country (state, province, canton, department, region, etc.) in which the specimen was originally collected.
  county: The full, unabbreviated name of the next smaller administrative region than stateProvince (county, shire, department, parish etc.) in which the specimen was originally collected.
  municipality: The full, unabbreviated name of the next smaller administrative region than county (city, municipality, etc.) in which the specimen was originally collected.
  locality: Description of geographic location, landscape, landmarks, regional
      features, nearby places, or any contextual information aiding in pinpointing
      the exact origin or location of the specimen.
  degreeOfEstablishment: Cultivated plants are intentionally grown by humans. In text descriptions,
      look for planting dates, garden locations, ornamental, cultivar names, garden,
      or farm to indicate cultivated plant. Set to 'cultivated' if cultivated, otherwise use an empty string.
  decimalLatitude: Latitude decimal coordinate. Correct and convert the verbatim location coordinates to conform
      with the decimal degrees GPS coordinate format.
  decimalLongitude: Longitude decimal coordinate. Correct and convert the verbatim location coordinates to conform
      with the decimal degrees GPS coordinate format.
  verbatimCoordinates: Verbatim location coordinates as they appear on the label. Do not
      convert formats. Possible coordinate types include [Lat, Long, UTM, TRS].
  minimumElevationInMeters: Minimum elevation or altitude in meters. Only if units are explicit
      then convert from feet ("ft" or "ft."" or "feet") to meters ("m" or "m." or
      "meters"). Round to integer.
  maximumElevationInMeters: Maximum elevation or altitude in meters. If only one elevation
      is present, then max_elevation should be set to the null_value. Only if units
      are explicit then convert from feet ("ft" or "ft." or "feet") to meters ("m"
      or "m." or "meters"). Round to integer.
mapping:
    TAXONOMY:
    - catalogNumber
    - order
    - family
    - scientificName
    - scientificNameAuthorship
    - genus
    - specificEpithet
    GEOGRAPHY:
    - country
    - stateProvince
    - county
    - municipality
    - decimalLatitude
    - decimalLongitude
    - verbatimCoordinates
    LOCALITY:
    - locality
    - habitat
    - minimumElevationInMeters
    - maximumElevationInMeters
    COLLECTING:
    - identifiedBy
    - recordedBy
    - recordNumber
    - verbatimEventDate
    - eventDate
    - degreeOfEstablishment
    - occurrenceRemarks
    MISC: []