From 14c5be7777713231f1d52b69be860b5e77159110 Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Mon, 9 Sep 2024 11:47:50 +0200 Subject: [PATCH] feat(street): improved matching of directional prefixes --- classifier/scheme/street.js | 8 ++++---- resources/pelias/dictionaries/libpostal/de/stopwords.txt | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 resources/pelias/dictionaries/libpostal/de/stopwords.txt diff --git a/classifier/scheme/street.js b/classifier/scheme/street.js index d06f1a89..55dc0fe5 100644 --- a/classifier/scheme/street.js +++ b/classifier/scheme/street.js @@ -107,17 +107,17 @@ module.exports = [ ] }, { - // Am Falkplatz + // N Main confidence: 0.98, Class: StreetClassification, scheme: [ { - is: ['StopWordClassification'], - not: ['IntersectionClassification'] + is: ['DirectionalClassification'], + not: ['IntersectionClassification', 'StreetClassification'] }, { is: ['StreetClassification'], - not: ['StopWordClassification'] + not: ['IntersectionClassification', 'DirectionalClassification'] } ] }, diff --git a/resources/pelias/dictionaries/libpostal/de/stopwords.txt b/resources/pelias/dictionaries/libpostal/de/stopwords.txt new file mode 100644 index 00000000..55b8489d --- /dev/null +++ b/resources/pelias/dictionaries/libpostal/de/stopwords.txt @@ -0,0 +1 @@ +!am \ No newline at end of file