Skip to content

Examples

Notebooks with the library at work on its datasets. The outputs of the cells are kept, so the notebooks read on GitHub without running; the button opens a notebook in Google Colab, where it installs the library - esTS 0.6 or newer - and the spaCy model itself.

Notebook What it shows Colab
01_text_walkthrough.ipynb A short story by Horacio Quiroga, El almohadón de pluma, through every tool of the library - extraction, syllables, the statistics of every class, the highlighting, the plots and the corpus measures - and the spaCy components over the 18 stories of the book into one table Open in Colab
02_prose_authors.ipynb Ten prose writers of SpanishLiterature: Burrows's and Cosine Delta between their works, the attribution of held-out works, Zeta and the chi-square of Kilgarriff for Galdós and Pardo Bazán, the comparison of Galdós and Blasco Ibáñez feature by feature and the Mendenhall curves Open in Colab
03_sonnets.ipynb Meter, types of the endecasílabo, rhyme schemes and sound of the 4,259 sonnets of SpanishSonnets from the 15th century to the 20th, checked against the annotation of DISCO, with the seseo of the American poets Open in Colab
04_corpus_measures.ipynb The prose of Spain and of Spanish America about 1900: keywords against each other and against the frequency dictionary, the dispersion of regional words, collocations, a concordance of voseo, the laws of Zipf and Heaps and the comparison of the corpora Open in Colab

Locally: uv sync --group examples, then uv run jupyter lab examples/. make notebooks runs every notebook again, writes the outputs into the files and strips the metadata of the run; a workflow runs them every week and fails when an output the prose quotes has moved.