Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Background
When I tried a acceptance test on the API with the pelias_parser branch, I found some regressions. One of them was
University of Hawaii at Hilo
. I found that this was not classified as place, so I tried to added it.In my first try, I added the correct classification in
classifier/scheme/place.js
but nothing happend. So I investigate a bit more and I found an exception on span containing aStopWordClassification
in theWhosOnFirstClassifier
.What to do next ?
In order to limit the side effects, I preferred to add a penalty instead of completely removing this exception. With this, no test fails.
The parsing of
University of Hawaii at Hilo
is not at 100% correct, but it's better :)If I completely remove the exception, 2 tests are failing,
Rue de Paris
andAvenue de Sainte Rose de Lima
which should be streets.I put this in standby at the moment in case it is necessary to keep the exception.
I am open to discussion / review 😄