Datasets:
Upload config/knowledge_graph_config.json with huggingface_hub
Browse files
config/knowledge_graph_config.json
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"entity_extraction": {
|
| 3 |
+
"models": {
|
| 4 |
+
"spacy": {
|
| 5 |
+
"model_name": "en_core_web_trf",
|
| 6 |
+
"confidence_threshold": 0.7
|
| 7 |
+
},
|
| 8 |
+
"huggingface": {
|
| 9 |
+
"model_name": "allenai/scibert_scivocab_uncased",
|
| 10 |
+
"confidence_threshold": 0.6
|
| 11 |
+
}
|
| 12 |
+
},
|
| 13 |
+
"multi_modal": {
|
| 14 |
+
"enabled": true,
|
| 15 |
+
"strategies": [
|
| 16 |
+
"textual",
|
| 17 |
+
"contextual",
|
| 18 |
+
"semantic"
|
| 19 |
+
]
|
| 20 |
+
}
|
| 21 |
+
},
|
| 22 |
+
"relationship_mapping": {
|
| 23 |
+
"confidence_scoring": {
|
| 24 |
+
"base_weight": 0.5,
|
| 25 |
+
"semantic_proximity_weight": 0.3,
|
| 26 |
+
"type_compatibility_weight": 0.2
|
| 27 |
+
},
|
| 28 |
+
"max_relationship_distance": 3,
|
| 29 |
+
"pruning_threshold": 0.4
|
| 30 |
+
},
|
| 31 |
+
"graph_construction": {
|
| 32 |
+
"versioning": {
|
| 33 |
+
"max_versions": 10,
|
| 34 |
+
"auto_prune": true
|
| 35 |
+
},
|
| 36 |
+
"visualization": {
|
| 37 |
+
"enabled": true,
|
| 38 |
+
"output_format": [
|
| 39 |
+
"networkx",
|
| 40 |
+
"graphviz",
|
| 41 |
+
"json"
|
| 42 |
+
]
|
| 43 |
+
}
|
| 44 |
+
},
|
| 45 |
+
"logging": {
|
| 46 |
+
"level": "INFO",
|
| 47 |
+
"console_output": true,
|
| 48 |
+
"file_output": true,
|
| 49 |
+
"log_dir": "logs/knowledge_graph"
|
| 50 |
+
},
|
| 51 |
+
"performance": {
|
| 52 |
+
"max_concurrent_tasks": 4,
|
| 53 |
+
"memory_limit_mb": 2048,
|
| 54 |
+
"cache_enabled": true,
|
| 55 |
+
"cache_expiry_minutes": 60
|
| 56 |
+
}
|
| 57 |
+
}
|