divvun/libdivvun

Normalize each CG sub-reading separately, like phonemisation

Opened this issue · 13 comments

snomos commented

Cf #44 (comment)

See also the following example:

Ulmme lij gehtjadit gåktu 25 jahkebuolva 15-jagágij lidjin jåhtålam 23 sáme-vuona rabdaguovlo suohkanijs.

where in 15-jagágij 15 is not transcribed.

Currently the transcriptor is set up to look up nearest surface form, with subreadings without surface form tags or other similar tags it falls back to 15-jagágij which is not in transcriptor. Maybe using lemma makes sense with transcription though

I see the other bug now, yeah it would be much easier possibly to not mess with more subreadings here...

"<15-jagágij>"
	"jahke" Ex/N Sem/Time Der/k A <smj> Pl Com <W:0.0> @<ADVL
		"lågenanvihtta" Num Sg Nom "lågenanvihtta"phon "15"oldlemma
	"jahke" Ex/N Sem/Time Der/k A <smj> Sg Ill <W:0.0> @<ADVL
		"lågenanvihtta" Num Sg Nom "lågenanvihtta"phon "15"oldlemma

this is current output after normalise

snomos commented

Looks good to me. What do you think, @ilm024 ?

what would be the full compound output?

snomos commented

With newest divvun-normalise I get the following:

"<15-jagágij>"
	"jahke" Ex/N Sem/Time Der/k A Pl Com "15-#»jagág9>ij"MIDTAPE <W:0.0> @<ADVL #7->3
		"15" Num Cmp/Hyph Cmp "15-#»jagág9>ij"MIDTAPE <W:0.0> #7->3
	"jahke" Ex/N Sem/Time Der/k A Sg Ill "15-#»jagág9>ij"MIDTAPE <W:0.0> @<ADVL #7->3
		"15" Num Cmp/Hyph Cmp "15-#»jagág9>ij"MIDTAPE <W:0.0> #7->3

What is missing to get what you get?

Probably version differences, the midtapes would confuse the normalise lookup and I don't get them with my hfst as it is now. So the output of smj-normaliser6-cg,mode is just:

"<15-jagágij>"
	"jahke" Ex/N Sem/Time Der/k A Pl Com <W:0.0> @<ADVL #7->3
		"15" Num Cmp/Hyph Cmp <W:0.0> #7->3
	"jahke" Ex/N Sem/Time Der/k A Sg Ill <W:0.0> @<ADVL #7->3
		"15" Num Cmp/Hyph Cmp <W:0.0> #7->3
snomos commented

Ok. What is the input and the command you used to get the desired output?

e.g. echo Ulmme lij gehtjadit gåktu 25 jahkebuolva 15-jagágij lidjin jåhtålam 23 sáme-vuona rabdaguovlo suohkanijs | $GTLANGS/lang-smj/tools/tts/modes/smj-normaliser6-cg.mode etc., not sure why I don't get midtapes, deubgging like with --verbose: echo 15-jagágij | ~/github/hfst/hfst/tools/src/hfst-tokenize -g '/home/flammie/github/giellalt/lang-smj/tools/tokenisers/tokeniser-tts-cggt-desc.pmhfst.tmp' -v just shows no results for lookups on midtapes

I commented midtape reading out , not sure if it made sense in normalising step or copy-paste from phonemiser

snomos commented

I am not sure either whether we need midtape in the normaliser process, but we definitely need to retain midtape strings for later IPA conversion.

IIRC the idea was to have an option for "deep analysis" that would generate the midtape stuff for normalised input.

well, midtape is kind-of retained now if it gets used by phon:

"<15-jagágij>"
	"jahke" Ex/N Sem/Time Der/k A Pl Com "15-#»jagág9>ij"MIDTAPE <W:0.0> @<ADVL #7->3
		"lågenanvihtta" Num Sg Nom "lågenanvihtta"phon "15"oldlemma
	"jahke" Ex/N Sem/Time Der/k A Sg Ill "15-#»jagág9>ij"MIDTAPE <W:0.0> @<ADVL #7->3
		"lågenanvihtta" Num Sg Nom "lågenanvihtta"phon "15"oldlemma
snomos commented

ok, good 🙂

snomos commented

we probably have to use the deep analyser thing to get a full MIDTAPE representation, if we need that