ó i;sSc@sÝdZddlmZddlmZddlmZddlmZddlm Z dd l Z ej Z ej ZejZeje jje jd je jƒƒƒZeje jje jd je jƒƒƒZeje jje jd je jƒƒƒZeje jje jd je jƒƒƒ\ZZd ad„Zy ej Z Wn)e!k r~Z"d„Z ej#dƒnXy ej Z$Wnd„Z$ej#dƒnXy ejZ%Wnd„Z%ej#dƒnXd S(s'Josu Bermudez i(tloggeri(tutils(tpronouns(tpos_tags(t propertiesiÿÿÿÿNs%files/gender/{0}.neutral.unigrams.txts"files/gender/{0}.male.unigrams.txts$files/gender/{0}.female.unigrams.txts'files/gender/{0}.namegender.combine.txtcCsVtdkrRtjtjjtjdj tj ƒƒƒat j dt tƒƒntS(Nsfiles/gender/{0}.gender.datasBergma dict: %i(tbergma_countertNoneRt bergma_splittostpathtjoinRt module_pathtformattlangRtdebugtlen(((scorefgraph/features/gender.pytget_bergma_dict!s  'cCstS(N(tFalse(tx((scorefgraph/features/gender.pyt,ssDummy gender(MALE) POS checker cCstS(N(R(R((scorefgraph/features/gender.pyR2ss!Dummy gender(FEMALE) POS checker cCstS(N(R(R((scorefgraph/features/gender.pyR8ss"Dummy gender(NEUTRAL) POS checker (&t __author__tRtfeaturesRtresources.dictionariesRtresources.tagsetRRRtfemaletfemale_pronounstmalet male_pronounstneutraltneutral_pronounst load_fileR R R R R t neutral_wordst male_wordst female_wordstsplit_gendername_filet female_namest male_namesRRRtmale_post Exceptiontextwarningt female_post neutral_pos(((scorefgraph/features/gender.pytsF    '''