File size: 756 Bytes
2a64ad4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# config.py

# Configuration settings for the commitment test harness project

class Config:
    # Model paths
    HUGGINGFACE_MODEL_PATH = "facebook/bart-large-cnn"  # Example model for summarization
    SPACY_MODEL = "en_core_web_sm"  # spaCy model for extraction

    # Extraction parameters
    EXTRACTION_PARAMS = {
        "min_length": 5,
        "max_length": 100,
        "do_sample": False,
    }

    # Plotting settings
    PLOTTING_SETTINGS = {
        "title": "Commitment Fidelity vs Compression Threshold",
        "xlabel": "Compression Threshold",
        "ylabel": "Fidelity",
        "xlim": (0, 1),
        "ylim": (0, 1),
        "grid": True,
    }

# Test harness parameters
SIGMA_GRID = [120, 80, 40, 20, 10, 5]
RECURSION_DEPTH = 8