In [2]:
from default import *
In [3]:
Pw = Pdist(data=datafile("data/count_1w.txt"))
segmenter = Segment(Pw)
with open("data/input/dev.txt") as f:
for line in f:
print(" ".join(segmenter.segment(line.strip())))