kovaloid / iresolver

Automated ticket analysis tool
MIT License
3 stars 22 forks source link

Empty line at the top of Issues_DataSet.txt file #161

Open ghost opened 3 years ago

ghost commented 3 years ago

After run program with ''create-issues-data-set" argument empty line creates at the top of output file. This leads to crash when program runs with "create-issues-vector-model" argument with following error:

Exception in thread "main" java.lang.IllegalArgumentException: Invalid column 0
        at org.deeplearning4j.util.StringGrid.checkInvalidColumn(StringGrid.java:674)
        at org.deeplearning4j.util.StringGrid.getColumn(StringGrid.java:659)
        at org.deeplearning4j.text.sentenceiterator.labelaware.LabelAwareListSentenceIterator.<init>(LabelAwareListSentenceIterator.java:54)
        at com.koval.resolver.common.api.doc2vec.VectorModelCreator.createFromInputStream(VectorModelCreator.java:57)
        at com.koval.resolver.common.api.doc2vec.VectorModelCreator.createFromFile(VectorModelCreator.java:46)
        at com.koval.resolver.core.Launcher.createVectorModel(Launcher.java:299)
        at com.koval.resolver.core.Launcher.createIssuesVectorModel(Launcher.java:101)
        at com.koval.resolver.IResolverApplication.main(IResolverApplication.java:60)

Full error log: error_log.txt

There may be two different fixes:

  1. Try to write issues without empty line at the top to output file
  2. Ignore empty lines while reading from Issues_DataSet.txt