src-d / modelforge

Python library to share machine learning models easily and reliably.
Apache License 2.0
18 stars 13 forks source link

Handle empty strings in merge_strings and split_strings #88

Closed zurk closed 5 years ago

zurk commented 5 years ago

Such a situation can happen when we are trying to save an empty model for IdTyposAnalyer because there are no identifiers were found in the file. (https://github.com/src-d/style-analyzer/blob/master/lookout/style/typos/analyzer.py#L319-L320)