21 lines
548 B
Python
21 lines
548 B
Python
|
|
"""
|
||
|
|
Database setup for Contradiction Gap Analysis
|
||
|
|
"""
|
||
|
|
|
||
|
|
import sys
|
||
|
|
from pathlib import Path
|
||
|
|
sys.path.append(str(Path(__file__).parent.parent.parent / "core"))
|
||
|
|
|
||
|
|
from database import VIMSDatabase
|
||
|
|
|
||
|
|
|
||
|
|
def setup():
|
||
|
|
"""Initialize database for contradiction-gap."""
|
||
|
|
db = VIMSDatabase("contradiction-gap")
|
||
|
|
db.create_schema(anomaly_classes=['official_mismatch', 'reported_vs_observed', 'data_conflict', 'unrecorded_change', 'false_claim'])
|
||
|
|
print(f"Database initialized for Contradiction Gap Analysis")
|
||
|
|
|
||
|
|
|
||
|
|
if __name__ == "__main__":
|
||
|
|
setup()
|