Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix server to include types when processing user feedback #12

Merged
merged 2 commits into from
Nov 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 0 additions & 34 deletions macrostrat_db_insertion/example_request.json

This file was deleted.

83 changes: 83 additions & 0 deletions macrostrat_db_insertion/example_requests/feedback_examples/0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
{
"nodes": [
{
"id": 392536,
"type": 4,
"name": "Tree",
"txt_range": [
[
597,
601
]
],
"reasoning": null,
"match": null
},
{
"id": 392535,
"type": 4,
"name": "Gowganda",
"txt_range": [
[
579,
587
]
],
"reasoning": null,
"match": null
},
{
"id": -1,
"type": 1,
"name": "mafic",
"txt_range": [
[
305,
310
]
],
"reasoning": null,
"match": null
},
{
"id": -2,
"type": 2,
"name": "apparent",
"txt_range": [
[
207,
215
]
],
"reasoning": null,
"match": null
},
{
"id": -3,
"type": 3,
"name": "feldspar",
"txt_range": [
[
64,
72
]
],
"reasoning": null,
"match": null
}
],
"edges": [
{
"source": -1,
"dest": -2
},
{
"source": -2,
"dest": -3
}
],
"sourceTextId": 22938,
"supersedesRunIds": [
26718
]
}
278 changes: 278 additions & 0 deletions macrostrat_db_insertion/example_requests/feedback_examples/1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,278 @@
{
"nodes": [
{
"id": 392239,
"type": 4,
"name": "mediumto",
"txt_range": [
[
986,
994
]
],
"reasoning": null,
"match": null
},
{
"id": 392238,
"type": 4,
"name": "DR3",
"txt_range": [
[
829,
832
]
],
"reasoning": null,
"match": null
},
{
"id": 392237,
"type": 4,
"name": "Fig.",
"txt_range": [
[
764,
768
]
],
"reasoning": null,
"match": null
},
{
"id": 392235,
"type": 4,
"name": "Suczek",
"txt_range": [
[
476,
482
]
],
"reasoning": null,
"match": null
},
{
"id": 392236,
"type": 10,
"name": "Dickinson et al.",
"txt_range": [
[
492,
508
]
],
"reasoning": null,
"match": null
},
{
"id": 392233,
"type": 4,
"name": "Ingersoll et al.",
"txt_range": [
[
360,
376
]
],
"reasoning": null,
"match": null
},
{
"id": 392232,
"type": 11,
"name": "Gazzi Dickinson",
"txt_range": [
[
320,
335
]
],
"reasoning": null,
"match": null
},
{
"id": 392234,
"type": 8,
"name": "Dickinson",
"txt_range": [
[
326,
335
]
],
"reasoning": null,
"match": null
},
{
"id": 392231,
"type": 4,
"name": "Villeneuve",
"txt_range": [
[
238,
248
]
],
"reasoning": null,
"match": null
},
{
"id": 392240,
"type": 4,
"name": "DeCelles et al.",
"txt_range": [
[
1039,
1054
]
],
"reasoning": null,
"match": null
},
{
"id": 392228,
"type": 4,
"name": "North",
"txt_range": [
[
44,
49
]
],
"reasoning": null,
"match": null
},
{
"id": 392227,
"type": 1,
"name": "North American basement",
"txt_range": [
[
44,
67
]
],
"reasoning": null,
"match": null
},
{
"id": 392229,
"type": 4,
"name": "Ross",
"txt_range": [
[
217,
221
]
],
"reasoning": null,
"match": null
},
{
"id": 392219,
"type": 1,
"name": "Ga Gehrels",
"txt_range": [
[
202,
212
]
],
"reasoning": null,
"match": null
},
{
"id": 392220,
"type": 2,
"name": "rocks",
"txt_range": [
[
81,
86
]
],
"reasoning": null,
"match": null
},
{
"id": 392226,
"type": 3,
"name": "feldspar",
"txt_range": [
[
155,
163
]
],
"reasoning": null,
"match": {
"type": "lith_att",
"id": 96
}
},
{
"id": 392224,
"type": 3,
"name": "quartz",
"txt_range": [
[
144,
150
]
],
"reasoning": null,
"match": {
"type": "lith_att",
"id": 94
}
},
{
"id": 392222,
"type": 3,
"name": "Sedimentary",
"txt_range": [
[
69,
80
]
],
"reasoning": null,
"match": null
}
],
"edges": [
{
"source": 392235,
"dest": 392236
},
{
"source": 392232,
"dest": 392234
},
{
"source": 392227,
"dest": 392229
},
{
"source": 392219,
"dest": 392220
},
{
"source": 392220,
"dest": 392226
},
{
"source": 392220,
"dest": 392224
},
{
"source": 392220,
"dest": 392222
}
],
"sourceTextId": 22924,
"supersedesRunIds": [
26704
]
}
Loading