Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ghost opened this issue Apr 4, 2021 · 0 comments
Open

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

ghost opened this issue Apr 4, 2021 · 0 comments

Comments

@ghost
Copy link

ghost commented Apr 4, 2021

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
@ghost ghost changed the title Invalid first line in Issues_DataSet.txt Empty line at the top while output issues to Issues_DataSet.txt Apr 4, 2021
@ghost ghost changed the title Empty line at the top while output issues to Issues_DataSet.txt Empty line at the top of Issues_DataSet.txt file Apr 4, 2021
Prokhorovmax added a commit to Prokhorovmax/iresolver that referenced this issue May 17, 2021
kovaloid pushed a commit that referenced this issue May 17, 2021
…e of blank description field fixed (#168)

* #161 Empty line at the top of Issues_DataSet.txt file removed
#167 NPE because of blank description field fixed

* passed pmd check
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants