# calculate the accuracy for example analysis performed on test documents and a model with 1 chain
calculate_accuracy(example_analysis)
if (FALSE) {
main_dir <- "/path/to/main_dir"
test_images_dir <- "/path/to/test_images"
analysis <- analyze_questioned_documents(
main_dir = main_dir,
questioned_docs = test_images_dir,
model = model,
num_cores = 2,
writer_indices = c(2, 5),
doc_indices = c(7, 18)
)
calculate_accuracy(analysis)
}
Run the code above in your browser using DataLab