assit commands for claude
All checks were successful
build_docker / essential (pull_request) Successful in 1s
build_docker / build_cpu (pull_request) Successful in 5m0s
build_docker / build_gpu (pull_request) Successful in 22m37s
build_docker / build_easyocr (pull_request) Successful in 18m5s
build_docker / build_easyocr_gpu (pull_request) Successful in 15m43s
build_docker / build_doctr (pull_request) Successful in 17m17s
build_docker / build_raytune (pull_request) Successful in 3m24s
build_docker / build_doctr_gpu (pull_request) Successful in 16m54s
All checks were successful
build_docker / essential (pull_request) Successful in 1s
build_docker / build_cpu (pull_request) Successful in 5m0s
build_docker / build_gpu (pull_request) Successful in 22m37s
build_docker / build_easyocr (pull_request) Successful in 18m5s
build_docker / build_easyocr_gpu (pull_request) Successful in 15m43s
build_docker / build_doctr (pull_request) Successful in 17m17s
build_docker / build_raytune (pull_request) Successful in 3m24s
build_docker / build_doctr_gpu (pull_request) Successful in 16m54s
This commit is contained in:
65
.claude/commands/documentation-review.md
Normal file
65
.claude/commands/documentation-review.md
Normal file
@@ -0,0 +1,65 @@
|
||||
Review and validate the documentation for this Master's Thesis project.
|
||||
|
||||
## Instructions
|
||||
|
||||
1. **Read metrics source files first** to get the correct values:
|
||||
- `docs/metrics/metrics_paddle.md` - PaddleOCR results
|
||||
- `docs/metrics/metrics_doctr.md` - DocTR results
|
||||
- `docs/metrics/metrics_easyocr.md` - EasyOCR results
|
||||
- `docs/metrics/metrics.md` - Comparative summary
|
||||
- `src/results/*.csv` - Raw data from 64 trials per service
|
||||
|
||||
2. **Review UNIR guidelines** for formatting and structure rules:
|
||||
- `instructions/instrucciones.pdf` - TFE writing instructions
|
||||
- `instructions/plantilla_individual.pdf` - Official template with required format
|
||||
|
||||
3. **Validate each documentation file** checking:
|
||||
|
||||
### Data Accuracy
|
||||
- All CER/WER values must match those in `docs/metrics/*.md`
|
||||
- Verify: baseline, optimized, best trial, percentage improvement
|
||||
- Verify: GPU vs CPU acceleration factor
|
||||
- Verify: dataset size (pages)
|
||||
|
||||
### UNIR Formatting
|
||||
- Tables: `**Tabla N.** *Title in italics.*` followed by table, then `*Fuente: ...*`
|
||||
- Figures: `**Figura N.** *Title in italics.*`
|
||||
- Sequential numbering (no duplicates, no gaps)
|
||||
- APA citation format for references
|
||||
|
||||
### Mermaid Diagrams
|
||||
- **All diagrams must be in Mermaid format** (no external images for flowcharts/charts)
|
||||
- All Mermaid diagrams must use the UNIR color theme
|
||||
- Required YAML frontmatter config (Mermaid v11+):
|
||||
```mermaid
|
||||
---
|
||||
title: "Diagram Title"
|
||||
config:
|
||||
theme: base
|
||||
themeVariables:
|
||||
primaryColor: "#E6F4F9"
|
||||
primaryTextColor: "#404040"
|
||||
primaryBorderColor: "#0098CD"
|
||||
lineColor: "#0098CD"
|
||||
---
|
||||
flowchart LR
|
||||
A[Node] --> B[Node]
|
||||
```
|
||||
- Colors: `#0098CD` (UNIR blue for borders/lines), `#E6F4F9` (light blue background)
|
||||
- Verify theme is applied to all diagrams in `docs/*.md`
|
||||
|
||||
### Files to Review
|
||||
- `docs/00_resumen.md` - Resumen/Abstract
|
||||
- `docs/03_objetivos_metodologia.md` - Objectives
|
||||
- `docs/04_desarrollo_especifico.md` - Main results (most critical)
|
||||
- `docs/05_conclusiones_trabajo_futuro.md` - Conclusions
|
||||
- `docs/07_anexo_a.md` - Technical annex
|
||||
- `README.md` - Project overview
|
||||
|
||||
4. **Report findings** with:
|
||||
- List of incorrect values found (with file:line references)
|
||||
- Formatting issues detected
|
||||
- Specific corrections needed
|
||||
- Overall documentation health assessment
|
||||
|
||||
5. **Language**: All docs/* files must be in Spanish. README.md and CLAUDE.md can be in English.
|
||||
65
.claude/commands/word-generation.md
Normal file
65
.claude/commands/word-generation.md
Normal file
@@ -0,0 +1,65 @@
|
||||
Generate the Word document for this Master's Thesis project.
|
||||
|
||||
## Instructions
|
||||
|
||||
Execute the TFM document generation pipeline in order:
|
||||
|
||||
### Step 0: Clean Up Previous Output
|
||||
|
||||
Remove the entire thesis_output folder to ensure a fresh build:
|
||||
```bash
|
||||
rm -rf thesis_output && mkdir -p thesis_output/figures
|
||||
```
|
||||
|
||||
### Step 1: Generate Figures from Mermaid Diagrams
|
||||
|
||||
Run the figure generation script using the virtual environment:
|
||||
```bash
|
||||
source .venv/bin/activate && python3 generate_mermaid_figures.py
|
||||
```
|
||||
|
||||
**Input:** Mermaid code blocks from `docs/*.md`
|
||||
**Output:** `thesis_output/figures/figura_*.png` and `figures_manifest.json`
|
||||
|
||||
### Step 2: Apply Content to UNIR Template
|
||||
|
||||
Run the content application script using the virtual environment:
|
||||
```bash
|
||||
source .venv/bin/activate && python3 apply_content.py
|
||||
```
|
||||
|
||||
**Input:**
|
||||
- `instructions/plantilla_individual.htm` (UNIR template)
|
||||
- `docs/*.md` (chapter content)
|
||||
- `thesis_output/figures/*.png` (generated figures)
|
||||
|
||||
**Output:** `thesis_output/plantilla_individual.htm`
|
||||
|
||||
### Step 3: Report Results
|
||||
|
||||
After successful execution, provide:
|
||||
1. Number of figures generated
|
||||
2. Number of tables formatted
|
||||
3. Path to output file
|
||||
4. Instructions for Word finalization:
|
||||
- Open `thesis_output/plantilla_individual.htm` in Microsoft Word
|
||||
- Press Ctrl+A then F9 to update all indices (contents, figures, tables)
|
||||
- Adjust image sizes if needed (select image → right-click → Size and Position)
|
||||
- Save as `.docx`
|
||||
|
||||
### Prerequisites
|
||||
|
||||
If scripts fail, check that dependencies are installed:
|
||||
```bash
|
||||
# Python dependencies (in .venv)
|
||||
source .venv/bin/activate && pip install beautifulsoup4
|
||||
|
||||
# Mermaid CLI for figure generation
|
||||
npm install @mermaid-js/mermaid-cli
|
||||
```
|
||||
|
||||
### Error Handling
|
||||
|
||||
- If `generate_mermaid_figures.py` fails: Check mmdc (mermaid-cli) is installed
|
||||
- If `apply_content.py` fails: Check beautifulsoup4 is installed
|
||||
- Report any errors with the specific step that failed
|
||||
Reference in New Issue
Block a user