PhyloStar / CogDetect

A lightweight library for cognate clustering, converting IPA sequences to sound classes, computing distances between languages
2 stars 1 forks source link

Initialize PMI matrix for each batch #27

Open PhyloStar opened 7 years ago

PhyloStar commented 7 years ago

The PMI matrix has to be initialized for each batch because the batch's PMI matrix is combined with the current PMI matrix. This has to be added into the code.

If the matrix is not initialized then the assert statement will return an error in calc_pmi function