add option to enable-disable edge rescaling

This commit is contained in:
Florian Förster 2025-06-20 09:05:02 +02:00
parent f1985af7bc
commit 2e041f9fd5
3 changed files with 5 additions and 2 deletions

View File

@ -1,8 +1,8 @@
# d-opt -- lang_main: config file # d-opt -- lang_main: config file
[paths] [paths]
inputs = '../data/in/' inputs = './lang-main/data/tests/in/'
results = '../data/out/' results = './lang-main/data/tests/out/'
models = './lang-models' models = './lang-models'
graph_export_filename = 'EXPORT-TokenGraph' graph_export_filename = 'EXPORT-TokenGraph'
@ -35,6 +35,7 @@ threshold_amount_characters = 5
threshold_similarity = 0.92 threshold_similarity = 0.92
[graph_postprocessing] [graph_postprocessing]
enable_edge_rescaling = true
max_edge_number = -1 max_edge_number = -1
[time_analysis.uniqueness] [time_analysis.uniqueness]

View File

@ -149,6 +149,7 @@ THRESHOLD_SIMILARITY: Final[float] = threshold_similarity
# ** token analysis # ** token analysis
# ** graph postprocessing # ** graph postprocessing
ENABLE_EDGE_RESCALING: Final[bool] = CONFIG['graph_postprocessing']['enable_edge_rescaling']
EDGE_WEIGHT_DECIMALS: Final[int] = 6 EDGE_WEIGHT_DECIMALS: Final[int] = 6
max_edge_number: int | None = None max_edge_number: int | None = None
max_edge_number_cfg: int = CONFIG['graph_postprocessing']['max_edge_number'] max_edge_number_cfg: int = CONFIG['graph_postprocessing']['max_edge_number']

View File

@ -35,6 +35,7 @@ threshold_amount_characters = 5
threshold_similarity = 0.92 threshold_similarity = 0.92
[graph_postprocessing] [graph_postprocessing]
enable_edge_rescaling = true
max_edge_number = -1 max_edge_number = -1
[time_analysis.uniqueness] [time_analysis.uniqueness]