+
    ÖÇÜh  ã                   óz   € ^ RI Ht ^ RIHt ^ RIHtHt ]P                  t]! ]RRRRR7      t	R]	n
        R	 tR
 tR# )é    )Úpartial)Úchain)Ú
everygramsÚpad_sequenceTz<s>z</s>)Úpad_leftÚleft_pad_symbolÚ	pad_rightÚright_pad_symbolz‘Pads both ends of a sentence to length specified by ngram order.

    Following convention <s> pads the start of sentence </s> pads its end.
    c           	     óB   € \        \        \        WR7      4      V R7      # )zhHelper with some useful defaults.

Applies pad_both_ends to sentence and follows it up with everygrams.
©Ún©Úmax_len)r   ÚlistÚpad_both_ends)ÚorderÚsentences   &&Ú7/usr/lib/python3/dist-packages/nltk/lm/preprocessing.pyÚpadded_everygramsr      s   € ô
 ”dœ=¨Ô;Ó<ÀeÔLÐLó    c                ól   a a€ \        \        S R7      oV V3R lV 4       \        \        SV4      4      3# )aÚ  Default preprocessing for a sequence of sentences.

Creates two iterators:

- sentences padded and turned into sequences of `nltk.util.everygrams`
- sentences padded as above and chained together for a flat stream of words

:param order: Largest ngram length produced by `everygrams`.
:param text: Text to iterate over. Expected to be an iterable of sentences.
:type text: Iterable[Iterable[str]]
:return: iterator over text as ngrams, iterator over text as vocabulary data
r   c              3   ó\   <"  € T F!  p\        \        S! V4      4      SR 7      x € K#  	  R# 5i)r   N)r   r   )Ú.0Úsentr   Ú
padding_fns   & €€r   Ú	<genexpr>Ú,padded_everygram_pipeline.<locals>.<genexpr>1   s%   øé € ÐLÁt¸tŒ”D™ DÓ)Ó*°E×	:Ñ	:Ãtùs   ƒ),)r   r   ÚflattenÚmap)r   Útextr   s   f&@r   Úpadded_everygram_pipeliner!   "   s2   ù€ ô œ¨%Ô0€JåLÁtÓLÜ”�J Ó%Ó&ðð r   N)Ú	functoolsr   Ú	itertoolsr   Ú	nltk.utilr   r   Úfrom_iterabler   r   Ú__doc__r   r!   © r   r   Ú<module>r(      sI   ðõ Ý ç .à
×
Ñ
€ÙØØØØØô€ð€Ô òMôr   