JL ixddlmZddlmZddlmZmZejZeeddddZ de _ d Z d Z y ) )partial)chain) everygrams pad_sequenceTzz)pad_leftleft_pad_symbol pad_rightright_pad_symbolzPads both ends of a sentence to length specified by ngram order. Following convention pads the start of sentence pads its end. cDttt|||S)zpHelper with some useful defaults. Applies pad_both_ends to sentence and follows it up with everygrams. nmax_len)rlist pad_both_ends)ordersentences [/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/nltk/lm/preprocessing.pypadded_everygramsrs d=U;z,padded_everygram_pipeline..1s%LtDD)*E : :Ls&))rrflattenmap)rtextrs` @rpadded_everygram_pipeliner "s2%0JLtLJ%& rN) functoolsr itertoolsr nltk.utilrr from_iterablerr__doc__rr rrr'sI.        Mr