Richard Hoekstra

Language atlas

Language Identification from Harmonic Cycle Fingerprints

Can the training prefix of a Wikipedia extract identify its held-out tail from among 49 candidates? This experiment tests two representations of the same bytes.

Each cached extract was split into an 80% training prefix and a 20% test suffix. The three-depth profile uses Euclidean distance. The cycle method selects up to 20 entries by absolute circulation on observed trigram transitions and compares the resulting label sets by Jaccard distance. Different rotations can contribute the same set, so a fingerprint can contain fewer than 20 distinct labels.

Results

Method Accuracy Chance
f(D) Euclidean (full test) 1/49 = 2.0% 2.0%
Cycles Jaccard (full test) 16/49 = 32.7% 2.0%
Combined f(D)+cycles 15/49 = 30.6% 2.0%
f(D) Euclidean (10KB chunk) 1/49 = 2.0% 2.0%

Interpretation

Cycle overlap identified 16 of 49 held-out tails (32.7%). The f(D)-only classifier scored 1/49; combining both scored 15/49. Each language supplied one train/test split of cached Wikipedia text. The task measures reuse of byte patterns across two portions of each extract. Generalization to new authors, domains, or corpora was not measured.

Cite this page

Richard Hoekstra. Language Identification from Harmonic Cycle Fingerprints. https://richardhoekstra.nl/atlas/langid.html