-
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat(dictionaries): dictionary updates * feat(place): promote "place" to a public classification
- Loading branch information
1 parent
ccd54be
commit 3031972
Showing
12 changed files
with
107 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
const PlaceClassification = require('../../classification/PlaceClassification') | ||
|
||
module.exports = [ | ||
{ | ||
// University Hospital | ||
confidence: 1.0, | ||
Class: PlaceClassification, | ||
scheme: [ | ||
{ | ||
is: ['PlaceClassification'], | ||
not: ['StreetClassification'] | ||
}, | ||
{ | ||
is: ['PlaceClassification'], | ||
not: ['StreetClassification'] | ||
} | ||
] | ||
}, | ||
{ | ||
// +++ Park | ||
confidence: 0.9, | ||
Class: PlaceClassification, | ||
scheme: [ | ||
{ | ||
is: ['AlphaClassification'], | ||
not: ['StreetClassification', 'IntersectionClassification', 'StopWordClassification'] | ||
}, | ||
{ | ||
is: ['PlaceClassification'], | ||
not: ['StreetClassification'] | ||
} | ||
] | ||
}, | ||
{ | ||
// Mt +++ Park | ||
confidence: 0.8, | ||
Class: PlaceClassification, | ||
scheme: [ | ||
{ | ||
is: ['PlaceClassification'], | ||
not: ['StreetClassification'] | ||
}, | ||
{ | ||
is: ['PlaceClassification'], | ||
not: [] | ||
} | ||
] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
const AddressParser = require('../parser/AddressParser') | ||
|
||
const testcase = (test, common) => { | ||
let parser = new AddressParser() | ||
let assert = common.assert.bind(null, test, parser) | ||
|
||
assert('Rushendon Furlong', [ | ||
{ street: 'Rushendon Furlong' } | ||
], true) | ||
} | ||
|
||
module.exports.all = (tape, common) => { | ||
function test (name, testFunction) { | ||
return tape(`address GBR: ${name}`, testFunction) | ||
} | ||
|
||
testcase(test, common) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters