You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ cat in.txt
dip dye hand-tufted ivory / navy area rug, 8' x 10'
azzura hill hand-tufted ivory indoor/outdoor area rug, 7'6" x 9'6"caterine hand-tufted ivory area rug, 9' x 12'de cor hand-tufted ivory/navy area rug, 8' x 10'$ cat in.txt | ~/mosesdecoder/scripts/tokenizer/tokenizer.perl -l en dip dye hand-tufted ivory / navy area rug , 8 ' x 10'azzura hill hand-tufted ivory indoor / outdoor area rug , 7 ' 6 " x 9 ' 6 "caterine hand-tufted ivory area rug , 9 ' x 12'de cor hand-tufted ivory / navy area rug , 8 ' x 10'
SacreMoses output:
>>>fromsacremosesimportMosesTokenizer>>>mt=MosesTokenizer()
>>>x="""dip dye hand-tufted ivory / navy area rug, 8' x 10'... azzura hill hand-tufted ivory indoor/outdoor area rug, 7'6" x 9'6"... caterine hand-tufted ivory area rug, 9' x 12'... de cor hand-tufted ivory/navy area rug, 8' x 10'... """>>>forsentinx.split('\n'):
... print(mt.tokenize(sent.strip(), return_str=True))
...
dipdyehand-tuftedivory/navyarearug , 8' x10'
azzurahillhand-tuftedivoryindoor/outdoorarearug , 7' 6" x9' 6"
caterinehand-tuftedivoryarearug , 9' x12'
decorhand-tuftedivory/navyarearug , 8' x10'
The text was updated successfully, but these errors were encountered:
Bug in final apostrophe from original Moses!!
Original Moses:
SacreMoses output:
The text was updated successfully, but these errors were encountered: