Seol mar théacs é seo: Segmentation and reconstruction of ethnic cultural texts