aalto-speech / morfessor

Morfessor is a tool for unsupervised and semi-supervised morphological segmentation
http://morpho.aalto.fi
BSD 2-Clause "Simplified" License
180 stars 27 forks source link

How to save the segmented word to file? #11

Closed yapingzhao closed 6 years ago

yapingzhao commented 6 years ago

Hi, I use the following command for model training(morfessor2.0): morfessor-train --traindata-list --logfile=log.log -S model.segm -d ones inputdata.txt Then use the following command for word segmentation: morfessor-segment -L model.segm test.txt Why is the output in the terminal after the word segmentation? How to save the segmented word to Specified file?

Looking forward to your advice or answers. Best regards,

yapingzhao

psmit commented 6 years ago

You can either use a shell redirect or use the option -o filename