• Jay Young's avatar
    Fix `Segmentation Fault` when loading very big corpus file · 0375c800
    Jay Young authored
    example_pos_ is the cursor to current position when reading the corpus file. When corpus file is very big, the corpus_size_ may bigger than max of int32, then example_pos_ became negative, and cause `corpus_[example_pos_]` to `Segmentation Fault`.
    0375c800
word2vec_kernels.cc 12.6 KB