<s> """<STR_LIT>""" <EOL> from __future__ import absolute_import , unicode_literals <EOL> import sys <EOL> from . import hangul , l10n , morphology <EOL> from . morphology import ( Morpheme , Noun , NumberWord , Loanword , Particle , <EOL> Substantive ) <EOL> __version__ = '<STR_LIT>' <EOL> __all__ = [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ] <EOL> if sys . version_info < ( <NUM_LIT:3> , ) : <EOL> for mod in [ globals ( ) , hangul , l10n , morphology ] : <EOL> if isinstance ( mod , dict ) : <EOL> mod [ '<STR_LIT>' ] = map ( str , mod [ '<STR_LIT>' ] ) <EOL> else : <EOL> mod . __all__ = map ( str , mod . __all__ ) <EOL> def _load_data ( ) : <EOL> """<STR_LIT>""" <EOL> import json <EOL> import os <EOL> with open ( os . path . join ( os . path . dirname ( __file__ ) , '<STR_LIT>' ) ) as f : <EOL> data = json . load ( f ) <EOL> for forms in data [ '<STR_LIT>' ] . itervalues ( ) : <EOL> particle = Particle ( * forms ) <EOL> for form in forms : <EOL> Particle . register ( form , particle ) <EOL> for number , form in data [ '<STR_LIT>' ] . iteritems ( ) : <EOL> NumberWord . __numbers__ [ int ( number ) ] = form <EOL> for digit , form in data [ '<STR_LIT>' ] . iteritems ( ) : <EOL> NumberWord . __digits__ [ int ( digit ) ] = form <EOL> for operation , form in data [ '<STR_LIT>' ] . iteritems ( ) : <EOL> NumberWord . __unary_operations__ [ operation ] = form <EOL> _load_data ( ) </s>
