SVAIGBA / WMSeg

MIT License
173 stars 42 forks source link

Using bool for mask and handling possible spaces in prediction #4

Open 9173860 opened 4 years ago

9173860 commented 4 years ago

If your text file is provided with space char, the length of labellist won't be equal to textlist in convert_examples_to_features.

Here comes a quick and dirty fix that replaced all continuous space char into two space char to avoid length change due to split with space char itself.

Also, this MR changed all byte mask to bool mask to eliminate warnings about it.