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

String index out of range: -1 in TfIdfCalculator when processing WikiLSHTC-325K datasets #1

Open
mwydmuch opened this issue May 3, 2021 · 0 comments

Comments

@mwydmuch
Copy link

mwydmuch commented May 3, 2021

When following the instruction from readme.txt for WikiLSHTC-325K datasets from the XMLC repo I've encountered the following error:

Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: -1
	at java.lang.String.substring(String.java:1955)
	at TfIdfCalculator.convertLibSvmToTfIdf(TfIdfCalculator.java:57)
	at TfIdfCalculator.main(TfIdfCalculator.java:211)

The same steps work for other datasets I've tested so far: Eurlex, AmazonCat, Wiki10, WikipediaLarge, and Amazon.

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

1 participant