Skip to content

Commit

Permalink
feat(street): improved street classification
Browse files Browse the repository at this point in the history
  • Loading branch information
missinglink committed May 3, 2019
1 parent e5a03f9 commit fed4025
Show file tree
Hide file tree
Showing 13 changed files with 329 additions and 381 deletions.
2 changes: 1 addition & 1 deletion bin/pretty.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ function solutions (tokenizer, label) {

// print all solutions
tokenizer.solution.forEach(s => {
let score = chalk.yellow.bold('(' + s.score.toFixed(1) + ')')
let score = chalk.yellow.bold('(' + s.score.toFixed(2) + ')')
console.log(score, '➜', s.pair.map(c => {
return {
[c.classification.label]: c.span.body
Expand Down
2 changes: 2 additions & 0 deletions classifier/WhosOnFirstClassifier.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ class WhosOnFirstClassifier extends PhraseClassifier {
this.tokens.locality.delete('texas')
this.tokens.locality.delete('california')
this.tokens.locality.delete('italy')
this.tokens.locality.delete('avenue')
this.tokens.locality.delete('lane')
}
})
}
Expand Down
Loading

0 comments on commit fed4025

Please sign in to comment.