Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Setted up locally and it returns "NO ARTICLE FOUND" for any URL #89

Open
coding-idiot opened this issue Mar 21, 2014 · 1 comment
Open

Comments

@coding-idiot
Copy link

hey, guys,

I'm sure that might be some problem at my end, but unfortunately, it's returning Article Not Found, for any url that I enter.

Github didn't txt files, so here is how the log looked like : https://dl.dropboxusercontent.com/u/109241721/gooseresult0.txt

Secondly, it didn't worked out of the box, initially it was giving SLF4J classNotFound exception, so I had to include other SLF dependencies to get it working, apart from that, there's no change.

One more thing, I'm having jdk 7 and scala 2.10.1

Hope you guys can help at your earliest.

@shohamtalsignals
Copy link

Hi
Had the same issue and fixed it.
the file '\src\main\resources\com\gravity\goose\text\stopwords-en.txt' was written in unix probably, so all line break are '\n'.
Now if you open this file in notepad you can see that windows doesnt recognise any line-breaks.
So to fix :
go to \src\main\scala\com\gravity\goose\text\StopWords.scala .
change this line:
val STOP_WORDS = FileHelper.loadResourceFile("stopwords-en.txt", StopWords.getClass).split(sys.props("line.separator")).toSet

to this:
val STOP_WORDS = FileHelper.loadResourceFile("stopwords-en.txt", StopWords.getClass).split("\r?\n").toSet

this will split the file by '\n' or by '\r\n' - good for unix and windows.

hopes this helps!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants