Files
docling-core/test/data/rec/statement-02.json
Cesar Berrospi RamisandGitHub 656f56380f fix: fix definition issues in record type (#2)
* fix(test): set static typing compatible to python 3.10

Signed-off-by: Cesar Berrospi Ramis <75900930+ceberam@users.noreply.github.com>

* style: enforce some pre-commit hooks on tests

Enforce pre-commit hooks black, isort, autoflake, and mypy on test modules.

Signed-off-by: Cesar Berrospi Ramis <75900930+ceberam@users.noreply.github.com>

* fix(rec): fix definition issues in attribute, predicate, subject

Remove duplicate generic types across base and predicate modules.
Create an identifier class for subject names.
Remove unnecessary type variables in attribute model.

Signed-off-by: Cesar Berrospi Ramis <75900930+ceberam@users.noreply.github.com>

* docs: refer to Docling data objects

Signed-off-by: Cesar Berrospi Ramis <75900930+ceberam@users.noreply.github.com>

---------

Signed-off-by: Cesar Berrospi Ramis <75900930+ceberam@users.noreply.github.com>
2024-07-17 17:24:31 +02:00

104 lines
2.4 KiB
JSON
Vendored

{
"subject": {
"names": [
{
"_name": "chemical_name#bi2sr2cacu2o8",
"type": "chemical_name",
"value": "Bi2Sr2CaCu2O8"
}
],
"identifiers": [
{
"_name": "ent_id#b94dls9d",
"type": "ent_id",
"value": "b94dls9d"
},
{
"_name": "sum_formula#bi(2) ca(1) cu(2) o(8) sr(2)",
"type": "sum_formula",
"value": "Bi(2) Ca(1) Cu(2) O(8) Sr(2)"
}
],
"display_name": "Bi(2) Ca(1) Cu(2) O(8) Sr(2)",
"type": "material"
},
"conf": 1.0,
"predicates": [
{
"numerical_value": {
"val": 0.23,
"unit": "dimensionless",
"min": 0.11,
"err": 0.05,
"max": 0.35
},
"numerical_value_si": {
"val": 0.23,
"unit": "dimensionless",
"min": 0.11,
"err": 0.05,
"max": 0.35
},
"value": {
"name": "0.11 to 0.35",
"type": "property-value"
},
"key": {
"name": "hole concentration",
"type": "property"
}
}
],
"type": "statement",
"subtype": "mat_to_prop_to_pvls",
"model": "Docling Model 0.0.0",
"source": "sentence.3",
"match": "89f0d4058c2483678b2cc4f515acf463",
"range": [
430,
668
],
"prov": [
{
"text": "Here is a sentence with measurements with high-Tc superconductor, on Bi2Sr2CaCu2O8 samples with different Tc values (hole concentration of 0.11 to 0.35).",
"type": "sentence",
"reference": {
"_name": "arxivid#0706.0214",
"type": "arxivid",
"value": "0706.0214"
}
}
],
"_name": "sentence.3",
"identifiers": [
{
"_name": "ent_id#b94dls9d",
"type": "ent_id",
"value": "b94dls9d"
},
{
"_name": "sum_formula#bi(2) ca(1) cu(2) o(8) sr(2)",
"type": "sum_formula",
"value": "Bi(2) Ca(1) Cu(2) O(8) Sr(2)"
}
],
"file-info": {
"document-hash": "ff94fd78199fe714f2bf6143ab4af8379a581587fd7049aa1a62167196f8f07e",
"filename": "db-file.pdf",
"filename-prov": "db-archive.zip"
},
"description": {
"provenance": {
"source": "arXiv abstracts"
},
"publication_date": "2007-06-01T20:36:32.000+00:00",
"logs": [
{
"agent": "CXS",
"type": "parsing",
"comment": "statement extraction",
"date": "2022-12-15T13:24:51.778+00:00"
}
]
}
}