finntk.omor.seg

Functions for basic processing of OMorFi segment labelling style analyses.

finntk.omor.seg.labelsegment_to_subword_tokens(labelsegmented)[source]

Returns a iterator of segments specified as (type, value) tuple. Type is one of “seg”, “tag” or “surf”.

finntk.omor.seg.tokens_to_surf(it)[source]

Given an iterator of segments as (type, value) tuples, reconstruct the surface string.