MCPcopy Create free account
hub / github.com/Paper2Poster/Paper2Poster / eval_general

Function eval_general

utils/src/experiment/evals.py:48–58  ·  view source on GitHub ↗
(presentations: list[Presentation], evals: dict[str, list[int]])

Source from the content-addressed store, hash-verified

46
47
48def eval_general(presentations: list[Presentation], evals: dict[str, list[int]]):
49 for prs in presentations:
50 if prs.source_file in evals["pages"]:
51 continue
52 evals["pages"][prs.source_file] = len(prs)
53 evals["characters"][prs.source_file] = sum(
54 [len(slide.to_text()) for slide in prs.slides]
55 )
56 evals["figures"][prs.source_file] = sum(
57 [len(list(slide.shape_filter(Picture))) for slide in prs.slides]
58 )
59
60
61def eval_feature(

Callers 2

eval_experimentFunction · 0.70
eval_baselineFunction · 0.70

Calls 2

to_textMethod · 0.45
shape_filterMethod · 0.45

Tested by

no test coverage detected