The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.
This vignette demonstrates an end-to-end reproducible workflow using
the taxaudit package to extract morphological traits from
the Flora of Pakistan corpus, map them to standard plant
ontologies, and evaluate model performance with held-out validation
splits.
First, we load our expert-annotated benchmark corpus containing
treatment text, exact character spans, and Plant Ontology IDs
(PO:0025034):
library(taxaudit)
corpus <- ta_load_corpus()
head(corpus)
#> taxon character handcoded_state extracted_state
#> 1 Cedrus deodara growth_form tree tree
#> 2 Cedrus deodara leaf_length_cm 2.5-5.0 2.5-5.0
#> 3 Cedrus deodara cone_shape conic conic
#> 4 Abies pindrow growth_form tree tree
#> 5 Abies pindrow leaf_length_cm 3.0-6.0 3.1-5.8
#> 6 Abies pindrow bark_texture fissured smooth
#> source_sentence annotator date text
#> 1 Large evergreen tree up to 50 m tall. Aamna_Naveed 2026-06-06 Cedrus deodara
#> 2 Leaves needle-like, 2.5-5.0 cm long. Aamna_Naveed 2026-06-06 Cedrus deodara
#> 3 Cones ovoid-conic, 7-10 cm long. Aamna_Naveed 2026-06-06 Cedrus deodara
#> 4 Evergreen tree reaching 30-60 m. Aamna_Naveed 2026-06-06 Abies pindrow
#> 5 Leaves linear, 3.0-6.0 cm long. Aamna_Naveed 2026-06-06 Abies pindrow
#> 6 Bark dark gray, deeply fissured. Aamna_Naveed 2026-06-06 Abies pindrowNext, we run our upgraded extraction pipeline on the corpus treatments to automatically recover trait values and their precise text coordinates:
To prove annotation reliability, we simulate a second independent annotator and measure span-level agreement:
annotator_1 <- data.frame(
trait = extracted_results$trait,
span_start = extracted_results$span_start,
span_end = extracted_results$span_end,
stringsAsFactors = FALSE
)
# Simulated second annotator with slightly shifted span bounds
annotator_2 <- data.frame(
trait = extracted_results$trait,
span_start = extracted_results$span_start + 2,
span_end = extracted_results$span_end + 1,
stringsAsFactors = FALSE
)
agreement <- ta_audit_agreement(annotator_1, annotator_2)
print(agreement)
#> $agreement_score
#> [1] 1
#>
#> $matched_count
#> [1] 0
#>
#> $total_a
#> [1] 0
#>
#> $total_b
#> [1] 0Finally, we ensure robust generalization by splitting our dataset using taxon-held-out cross-validation:
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.