Stage 2: Processing and Lemma Statistics

Convert raw corpus text into sentence, token, lemma and frequency evidence for later sampling and review.

Purpose: Stage 2 turns raw text into structured linguistic data: sentences, tokens, lemmas, POS tags and lemma statistics.

What happens in this stage?

The corpus is processed using language-appropriate NLP tools. The output should allow the project to connect each sampled lemma to all the sentences in which it appears.

Core processing steps

StepDescriptionExample output
Sentence splitting Corpus text is divided into individual sentences. sentence_id = en_00018452
Tokenisation Each sentence is split into tokens. Could | you | send | me | the | report | by | Friday | ?
POS tagging Each token receives a part-of-speech tag. send = VERB
Lemmatisation Inflected forms are linked to dictionary-style lemmas. sent, sends, sending → send
Lemma statistics Raw frequency, frequency per million, dispersion and ARF are calculated. arf_per_million = 58.7

Example token row

ColumnExample value
languageen
sentence_iden_00018452
tokensend
lemmasend
posVERB
token_index3

Example lemma statistics row

ColumnExample value
lemmasend
posVERB
raw_frequency1,284
frequency_per_million64.2
dispersion0.82
arf_per_million58.7

Output folders

OutputFolder
Token filesDrive/data/interim/{lang}/tokens/
Lemma-sentence indexDrive/data/interim/{lang}/lemma_sentence_index/
Lemma statisticsDrive/data/interim/{lang}/lemma_stats/
Filtered lemmasDrive/data/interim/{lang}/filtered_lemmas/

Checks and risks

← Back to workflow overview