TaggedDocument)) which itself is quite time consuming task itself. I have 64 cores machine and when I used all cores for training it don't optimally use all cores. I came across this https://github.com/RaRe-Technologies/gensim/blob/develop/docs/notebooks/Any2Vec_Filebased.ipynb that uses file-based training for efficient use of all cores during doc2vec model training.['diabetes post operative hyperglycemia predict complications length stay coronary artery bypass patients diabetes markedly increases risk cardiovascular disease many individuals cvd undiagnosed diabetes also treatment hyperglycemia post operative period cab surgery often sub optimal two hundred patients underwent cab surgery evaluation diabetes status consisting preoperative immediate post operative glucose day fasting glucose data collected age bmi length stay readmission within days death patients previously diagnosed diabetes type type another patients suspected diabetes defined day fasting glucose greater mg dl group one preoperative normal range supporting criterion thus total number patients diagnosed probable diabetes total complications defined readmissions within days death three deaths patients diabetes strongest predictors complications post op glucose gte mg dl diagnosed suspected diabetes previously diagnosed diabetes age bmi predictive complications mean length stay entire group days post op glucose gte mg dl days post op glucose gte mg dl days age strongest predictor length stay post op glucose also predictor length stay independent diabetes diagnosed suspected predictive conclusion results support aggressive approach carefully screening cab patients diabetes developing strategies intensive treatment post operative hyperglycemia goal reduce hospital stay complications mortality',
'type ii idiopathic macular telangiectasia soft confluent drusen purpose describe simultaneous presentation soft confluent drusen type idiopathic macular telangiectasia eyes one patient methods year old man bilateral metamorphopsia gradual reduction central vision underwent complete ophthalmologic examination results patient fundus biomicroscopy revealed soft confluent drusen cystic appearance within fovea fluorescein angiography showed late dye leakage interestingly indocyanine green angiography showed absence late hypercyanescence spectral domain optical coherence tomography clearly revealed presence bilateral foveal cysts thinning loss normal architecture outer retina well absence retinal thickening within parafoveolar area showing discrete late dye leakage fa based findings patient diagnosed nonexudative age related macular degeneration foveal soft confluent drusen coincident nonproliferative type imt conclusions knowledge previously reported case simultaneous presentation soft confluent drusen type imt report highlights importance icga oct correct diagnosis cases introduction idiopathic juxtafoveal retinal telangiectasis clinical entity distinctly different secondary telangiectasis result various diseases type idiopathic macular telangiectasia common group patients type imt usually present mild blurring vision one eyes fifth sixth decades life fluorescein angiography eyes usually reveals temporal parafoveal telangiectatic vessels intraretinal fluorescein leakage spares foveal center absence cystic macular edema possible presence lamellar hole key distinguishing features entity charbel issa recently confirmed central retinal thickness slightly less patients type imt compared normative data describe presence different conditions eyes one patient knowledge previously reported case simultaneous presentation soft confluent drusen type imt case report year old woman referred department history bilateral metamorphopsia gradual reduction central vision patient signed comprehensive consent form according good clinical practice guidelines proceeding examinations otherwise healthy medical evaluations excluded presence diabetes best corrected visual acuity right eye left eye fundus biomicroscopy eyes cystic appearance evident within fovea moreover several soft confluent drusen foveal parafoveal region small hard drusen concentrated perifoveal region fa revealed discrete late dye leakage mainly temporal parafoveal region le indocyanine green angiography showed areas focal hypocyanescence due confluence soft drusen absence late hypercyanescence choroidal neovascularization detected icga spectral domain optical coherence tomography clearly revealed presence bilateral foveal cysts thinning loss normal architecture outer retina well presence small drusenoid pigment epithelium detachments therefore spectralis sd oct confirmed absence cnvs eyes interestingly spectralis sd oct scans demonstrate retinal thickening within parafoveolar area based findings patient diagnosed nonexudative age related macular degeneration foveal soft confluent drusen coincident nonproliferative type imt discussion type imt clinical fluorescein angiographic oct findings unlike macular diseases gass blodi divided type imt subgroups type describing bilateral occult nonexudative form imt found adults common form imt divided stages progressed subtle presence parafoveolar telangiectasias right angle venules hyperplastic retinal pigment epithelium ultimately subretinal neovascularization yannuzzi recently updated classification scheme imt group referred perifoveal telangiectasia entity divided stages nonproliferative characterized perifoveal telangiectasis crystalline deposits subretinal pigment plaques right angle vessels inner lamellar cysts proliferative defined presence subretinal neovascularization report case year old woman simultaneous presentation soft confluent drusen type imt knowledge first description coexistence patient fundus biomicroscopy revealed soft confluent drusen cystic appearance within fovea fa showed late dye leakage interestingly icga showed absence late hypercyanescence spectralis sd oct clearly revealed presence bilateral foveal cysts thinning loss normal architecture outer retina well absence retinal thickening within parafoveolar area thus icga oct demonstrated absence cnvs patient showing simultaneous presentation soft confluent drusen type imt due absence cnv decided treat patient anti vascular endothelial growth factor agents report highlights importance complete examination treating leaking lesion sense injecting patient anti vegf agents based isolated oct isolated fa icga cannot considered good strategy case correct diagnosis achieved means icga oct believe patients showing coexistence soft confluent drusen type imt cystic appearance fundus biomicroscopy well discrete late dye leakage fa parafoveal region may erroneously lead diagnosis exudative agerelated macular degeneration icga oct performed conclusion treating patients anti vegf injections complete thorough examination remains mandatory least first examination angiographic examinations still needed references gass jdm stereoscopic atlas macular disease ed st louis mo mosby gass jd oyakawa rt idiopathic juxtafoveal retinal telangiectasis arch ophthalmol gass jd oyakawa rt idiopathic juxtafoveal retinal telangiectasis arch ophthalmol gass jdm blodi ba idiopathic juxtafoveolar retinal telangiectasis update classification follow study ophthalmology gass jdm blodi ba idiopathic juxtafoveolar retinal telangiectasis update classification follow study ophthalmology charbel issa helb hm holz fg scholl hp mactel study group correlation macular function retinal thickness nonproliferative type idiopathic macular telangiectasia ophthalmol charbel issa helb hm holz fg scholl hp mactel study correlation macular function retinal thickness nonproliferative type idiopathic macular telangiectasia ophthalmol gaudric ducos de lg cohen sy massin haouchine optical coherence tomography group idiopathic juxtafoveolar retinal telangiectasis arch ophthalmol gaudric ducos de lg cohen sy massin haouchine optical coherence tomography group idiopathic juxtafoveolar retinal telangiectasis arch ophthalmol chan duker js ko th fujimoto jg schuman js normal macular thickness measurements healthy eyes using stratus optical coherence tomography arch ophthalmol chan duker js ko th fujimoto jg schuman js normal macular thickness measurements healthy eyes using stratus optical coherence tomography arch ophthalmol yannuzzi la bardal amc freund kb idiopathic macular telangiectasia arch ophthalmol yannuzzi la bardal amc freund kb idiopathic macular telangiectasia arch ophthalmol']
| with smart_open(filename, mode='wb', encoding='utf8') as fout: for sentence in corpus: line = any2unicode(sentence + '\n') fout.write(line) | |
ef processed_corpus(): raw_corpus = api.load('wiki-english-20171001') for article in raw_corpus: # concatenate all section titles and texts of each Wikipedia article into a single "sentence" doc = '\n'.join(itertools.chain.from_iterable(zip(article['section_titles'], article['section_texts']))) yield preprocess_string(doc)
In my case I don't have section_titles and section_texts.
Thanks for guidance.