
Tika Eval Encoding Regression
Condensed tika-eval pattern for charset-detector regression hunts ("A picks encoding X...
Install
npx skills add apache/tika --skill tika-eval-encoding-regression -g -a claude-code -y- Repository
- apache/tika4.1k
- Category
- Engineering
- Updated
- 3d ago
- License
- Apache-2.0
- Context cost
- Mediumabout 2,379 tokens
- Runs scripts
- No, instructions only
What it does
Condensed tika-eval pattern for charset-detector regression hunts ("A picks encoding X, B picks Y") using one build and two configs, encoding-pair flip queries, OOV/languageness/FFFD signals, per-file detector attribution.
Local override: $TIKA_SKILLS_LOCAL/tika-eval-encoding-regression/LOCAL.md (default ~/.tika-skills),
read after this file, wins on conflict.
tika-eval for encoding-detector regression hunts
A condensed pattern for finding SBCS→CJK style charset-detector regressions (or any "A picks encoding X, B picks encoding Y" question) without building two tika-app distributions.
Two configs, one build
Encoding-detector experiments don't need a "before" and "after" tika-app, the chain composition is per-config. Run the SAME tika-app twice against
two configs, treat the outputs as -a and -b. Much faster than
tika-eval-compare's two-build flow.
# build once
./mvnw clean install -pl tika-app -am -Pfast -DskipTests \
-Dmaven.repo.local=$(pwd)/.local_m2_repo
unzip -q tika-app/target/tika-app-*.zip -d /tmp/tika-app-current
# two configs (any combination of detectors)
java -jar /tmp/tika-app-current/tika-app-*.jar \
--config=tika-config-3x-default.json \
-i <corpus> -o <workdir>/extracts/A -n 6
java -jar /tmp/tika-app-current/tika-app-*.jar \
--config=tika-config-junkfilter-combiner.json \
-i <corpus> -o <workdir>/extracts/B -n 6
