The following warnings occurred:
Warning [2] Undefined variable $can_link - Line: 6 - File: showthread.php(1658) : eval()'d code PHP 8.5.12 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/showthread.php(1658) : eval()'d code 6 errorHandler->error_callback
/showthread.php 1658 eval




[split] Does Voynichese evolve from A to B?
#40
(4 hours ago)nablator wrote: You are not allowed to view links. Register or Login to view.About parameters... what can be improved?
 

I think trying the transition matrix instead of TFID, would be the main difference. 

In python you could do:

Code:
from collections import Counter import numpy as np from scipy.spatial.distance import pdist, squareform # Assumes spaces separate words. Adapt if the transcription uses dots. def transitions(text):     counts = Counter()     for word in text.split():         units = ["<START>", *word, "<END>"]         counts.update(zip(units, units[1:]))     return counts profiles = [transitions(text) for text in df["text"]] features = sorted(set().union(*(p.keys() for p in profiles))) # Each row is a flattened character-to-character transition matrix. X = np.array([     [p.get(pair, 0) for pair in features]     for p in profiles ], dtype=float) if np.any(X.sum(axis=1) == 0):     raise ValueError("Remove empty texts before fitting.") X /= X.sum(axis=1, keepdims=True) # Already the square root of JS divergence—do not sqrt again. distance_matrix = squareform(pdist(X, metric="jensenshannon"))

i think that should be able to be fed into distance_matrix in your current MDS call. The only other thing would be designing your glyph set.

Code:
# Illustrative only: choose units appropriate to their transcription. GLYPHS = [     "ckh", "cth", "cph", "cfh",     "ch", "sh",     "a", "o", "e", "i", "y",     "k", "t", "p", "f",     "q", "d", "s", "r", "l", "n", "m", ] # Match longer glyph spellings before shorter ones. GLYPHS = sorted(set(GLYPHS), key=lambda g: (-len(g), g)) def tokenize(word):     result = []     pos = 0     while pos < len(word):         for glyph in GLYPHS:             if word.startswith(glyph, pos):                 result.append(glyph)                 pos += len(glyph)                 break         else:             raise ValueError(f"Unknown glyph in {word!r} at position {pos}")     return result def transitions(text):     counts = Counter()     for word in text.split():         units = ["<START>", *tokenize(word), "<END>"]         counts.update(zip(units, units[1:]))     return counts
Reply


Messages In This Thread
RE: New Rohonc Codex paper - by Jorge_Stolfi - 18-10-2026, 10:55 AM
RE: New Rohonc Codex paper - by nablator - 18-10-2026, 11:09 AM
RE: New Rohonc Codex paper - by Jorge_Stolfi - 18-10-2026, 11:20 AM
RE: New Rohonc Codex paper - by nablator - 18-10-2026, 12:34 PM
RE: New Rohonc Codex paper - by Jorge_Stolfi - 18-10-2026, 04:16 PM
RE: New Rohonc Codex paper - by Jorge_Stolfi - 18-10-2026, 04:39 PM
RE: New Rohonc Codex paper - by nablator - 18-10-2026, 05:13 PM
RE: New Rohonc Codex paper - by pfeaster - 18-10-2026, 06:47 PM
RE: New Rohonc Codex paper - by npcompl33t - 18-10-2026, 07:07 PM
RE: New Rohonc Codex paper - by Bluetoes101 - 18-10-2026, 11:25 PM
RE: New Rohonc Codex paper - by RadioFM - 18-10-2026, 11:44 PM
RE: New Rohonc Codex paper - by npcompl33t - 19-10-2026, 12:01 AM
RE: New Rohonc Codex paper - by Bluetoes101 - 19-10-2026, 01:23 AM
RE: New Rohonc Codex paper - by Jorge_Stolfi - 19-10-2026, 02:55 AM
RE: New Rohonc Codex paper - by Bluetoes101 - 19-10-2026, 03:46 AM
RE: New Rohonc Codex paper - by npcompl33t - 19-10-2026, 04:07 AM
RE: New Rohonc Codex paper - by npcompl33t - 19-10-2026, 04:14 AM
RE: New Rohonc Codex paper - by Jorge_Stolfi - 19-10-2026, 10:58 AM
RE: New Rohonc Codex paper - by Jorge_Stolfi - 19-10-2026, 11:10 AM
RE: New Rohonc Codex paper - by npcompl33t - 19-10-2026, 12:59 PM
RE: New Rohonc Codex paper - by npcompl33t - 19-10-2026, 01:07 PM
RE: New Rohonc Codex paper - by Jorge_Stolfi - 20-10-2026, 02:59 AM
RE: New Rohonc Codex paper - by npcompl33t - 20-10-2026, 03:54 AM
RE: New Rohonc Codex paper - by Jorge_Stolfi - 20-10-2026, 12:15 PM
RE: New Rohonc Codex paper - by npcompl33t - 20-10-2026, 04:21 PM
RE: New Rohonc Codex paper - by Jorge_Stolfi - Yesterday, 07:17 AM
RE: New Rohonc Codex paper - by Mauro - Yesterday, 09:40 AM
RE: New Rohonc Codex paper - by npcompl33t - Yesterday, 03:27 PM
RE: [split] Does Voynichese evolve from A to B? - by npcompl33t - 4 hours ago

Forum Jump:


Users browsing this thread: 3 Guest(s)