Spaces:
Sleeping
Sleeping
A newer version of the Gradio SDK is available: 6.22.0
Code Overview
This workspace keeps only the code needed for the tokenizer study.
Main Modules
code/tokenization/
wl.py: WL tokenizer wrappersimhash.py: fixed-dimensional SimHash tokenizershortest_path.py: shortest-path histogram tokenizergraphbpe.py: graph BPE tokenizerrandom.py: weak compositional random baselinemultidomain.py: pooled and union all-domain tokenizer utilities
code/encoding_generation/
generate_multi_embeddings.py: domain-dependent embedding generationgenerate_all_domain_embeddings.py: all-domain tokenizer fitting and embedding generation
code/modeling/
train_lstm.pytrain_xgb.pyinference_lstm.pyinference_xgb.pydataset.pymodels.py
code/experiments/
config.py: tokenizer/model/domain defaultsrun_tokenizer_paper.py: main fresh-study orchestratoranalyze_tokenizer_study.py: aggregation, significance testing, paper outputs
code/downstream/
build_validity_dataset.py: recovers gold plans, generates corrupted candidate plans, labels them, and extracts frozen transition-model featurestrain_validity.py: trains a small MLP head for binary valid-plan classificationrun_validity_experiments.py: runs the standard downstream experiment over the weighted-best frozen source families
code/common/
utils.py: seeding and VAL plan validationwl_wrapper.py: WL helper integrationfsf_wrapper.py: retained only for compatibility in shared modeling code paths
Recommended Entry Points
- Full study:
python -m code.experiments.run_tokenizer_paper - Analysis only:
python -m code.experiments.analyze_tokenizer_study - Downstream validity task:
python -m code.downstream.run_validity_experiments