-
Notifications
You must be signed in to change notification settings - Fork 698
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pronunciation for names and destinations #3132
Merged
Changes from 1 commit
Commits
Show all changes
176 commits
Select commit
Hold shift + click to select a range
a1b5882
added GetPronunciationsMap() and only_pronunciations to GetTaggedName…
gknisely 42b6925
updated getsign logic for pronunciations
gknisely 0431b98
updated call to addedgeinfo
gknisely 380342a
added logic to process pronunciation_file and pronunciations.
gknisely 88287ff
updated call to .GetNamesAndTypes
gknisely e616ec2
updated call to addedgeinfo
gknisely f3db0c8
added logic to write out pronunciations. Using tagged bit on signs now.
gknisely bbdb6b5
updated call to addedgeinfo
gknisely 8d8add1
added logic to process pronunciations for ways.
gknisely 56b8fc8
added logic to parse pronunciations. Nodes data saved to existing no…
gknisely 994a6e4
updated call to addedgeinfo
gknisely 9e2e8c6
updated call to addedgeinfo
gknisely f8d4894
just temp printing out pronunciations
gknisely c5c78b8
updated call to addedgeinfo
gknisely 498f2dc
added new pronunciation file
gknisely 575a8c7
added new kVerbal type.
gknisely af3796c
tagged bit is now in use.
gknisely bf4fd4b
added is_tagged_, has_phoneme_, phoneme_start_index_, and phoneme_cou…
gknisely e7d4109
updated comment
gknisely 618161f
added pronunciations to AddEdgeInfo
gknisely 22a6ac6
added pronunciation indexes.
gknisely cf6f5e7
added pronunciation_file
gknisely 2191bf4
init copy
gknisely d357d62
init copy
gknisely acac388
lint
gknisely 13cbedc
Merge remote-tracking branch 'origin/master' into phonemes
gknisely 2f333af
Added verbal type and value to street name and sign element
dgearhart 147ef5e
clean up temp files
gknisely ca55608
Merge remote-tracking branch 'origin' into phonemes
gknisely 987c671
added Jeita.
gknisely dffa0ca
updated GetPronunciationsMap(). Data is now separated by a #. Updat…
gknisely 8d439b1
updated to kJeita.
gknisely e423c1a
getsigns should of returned a unordered_multimap. delimeter is now #.
gknisely 26b60e3
delimeter is now #.
gknisely 27469c2
added name and ref set/get for jeita.
gknisely 771d768
added logic for jeita.
gknisely f3035f7
added jeita indexes and accessor functions.
gknisely df1430b
added logic to set the jeita information.
gknisely 34e1343
added types
gknisely e9e830c
added logic to parse jeita information.
gknisely 4f046e2
clean up
gknisely adbc513
added logic to reference tagged names from the pronunciation map
gknisely dc400c4
updated to use new function signatures.
gknisely 8d294c5
allow name nodes for netherlands only for testing
gknisely 9a39136
updated to use new function signatures.
gknisely d3afe07
new tests.
gknisely a31016c
removed verbal info from sign
dgearhart 6836c38
Merge branch 'master' of https://github.com/valhalla/valhalla into ph…
dgearhart b005172
Merge branch 'master' of https://github.com/valhalla/valhalla into ph…
dgearhart dbd6fe6
Added new Pronunciation message
dgearhart 6f56132
refactored naming to match
dgearhart 4d9f991
format fix
dgearhart 2ca8c3e
refactrored for name consistency
dgearhart 4975582
name refactor
dgearhart 0196360
rename GetPronunciationsMulitMap
dgearhart c8b9d77
missed one
dgearhart 35af424
added GetPronunciationsMap
gknisely 0d5e160
updated to use edgeinfo.GetPronunciationsMap
gknisely 69e0d59
reordered.
gknisely 3eb2c67
refactor
dgearhart 372ba66
Assign the street names pronunciations if they exist
dgearhart b8ee5fc
Updated StreetNamesToString and StreetNamesToParameterString
dgearhart a0430a3
updated test routes
dgearhart 0ae7635
Added the GraphTile::GetSigns method using unordered_map for the inde…
dgearhart 2711fb1
Changed the name of the internal GetSigns method to ProcessSigns
dgearhart 6e1918d
update comment
dgearhart 1de7412
Merge branch 'master' of https://github.com/valhalla/valhalla into ph…
dgearhart 268d220
fix conflict
dgearhart f181beb
Added the PopulateSignElement method which will populate sign pronunc…
dgearhart b151d87
Added debug output for sign_element pronunciation
dgearhart ad1c6ce
GetPronunciationsMultiMap() no longer needed. emplace does not allow…
gknisely 5780bab
added logic for signs_on_node check.
gknisely 33a5173
fixed bug where destination_ref_to were not getting added with phonemes
gknisely 9e7bb11
updated and added more tests.
gknisely d6335b1
updated comment
gknisely 7bf7b4c
route num = true means phoneme is for the node.
gknisely fbe6f2e
fixed xsampa bug.
gknisely 12bb7ff
lint
gknisely 336d699
changed to nt-sampa
gknisely f29b170
lint
gknisely 82bac45
Added pronunciation class
dgearhart 0c9e24f
added maneuver street name debug output
dgearhart be2ae25
Assigned pronunciation to the signs
dgearhart 328e2e2
update for street names debug
dgearhart 58a2566
Assigned pronunciation to street names in the maneuvers builder
dgearhart 053bde4
clan-tidy updates.
gknisely 2f00de3
clang tidy updates.
gknisely 643f04b
clang tidy updates.
gknisely e75195e
Updated the DirectionsBuilder to assign the street name and sign pron…
dgearhart 8912922
Merge branch 'master' of https://github.com/valhalla/valhalla into ph…
dgearhart 0c73673
Merge branch 'master' of https://github.com/valhalla/valhalla into ph…
dgearhart b067db4
Added another RAD test
dgearhart 8ea351b
Merge remote-tracking branch 'origin/master' into phonemes_update
gknisely 391539c
lint
gknisely dce938b
Merge remote-tracking branch 'origin' into phonemes_update
gknisely ed8780a
Update graphtilebuilder.cc
gknisely e5a58e1
Update graphtilebuilder.cc
gknisely fb90085
Merge remote-tracking branch 'origin/phonemes_update' into phonemes
gknisely d6ad7ee
jeita --> x-jeita and katakana --> x-katakana
gknisely f12ff7c
Added MarkupFormatter class
dgearhart 65990f8
fixed format
dgearhart 23aaefe
lint
gknisely 3d4602e
Merge branch 'phonemes' of https://github.com/valhalla/valhalla into …
gknisely 0ac1996
added config options for markup_formatter
gknisely 2dc1997
Added markup support for signs
dgearhart 3630395
Verify toward sign pronunciation instructions
dgearhart d75e635
Test exit number, exit onto street, and street name pronunciation ins…
dgearhart f3c7a33
Test ref and destination:ref pronunciation
dgearhart 654b4cf
Added tests for destination:street:to and destination:ref:to
dgearhart 1cdfb0f
added the CheckGuideSigns test
dgearhart 05451bc
Added the CheckJunctionName test
dgearhart 6c05aba
fixed typo
dgearhart 574cdd6
cleanup refactor
dgearhart f74745e
Updated the quotes format and gurka tests
dgearhart 2a5a053
refactor for multicue
dgearhart 0287fd1
refactor markup formatter
dgearhart 91b3383
refactor FormatPhonemeElement
dgearhart 3d7576c
Merge branch 'master' of https://github.com/valhalla/valhalla into ph…
dgearhart 217cfd0
Added 3132 to changelog
dgearhart 1d1e702
Merge branch 'master' of https://github.com/valhalla/valhalla into ph…
dgearhart 7590fb0
update submodules
dgearhart aa6534b
example for how to handle nuls in strings by computing the width of e…
kevinkreiser 3d7010e
eagle eye duane
kevinkreiser c712afd
so much simpler
kevinkreiser 2270541
debugging wrong data in hierarchybuilder
kevinkreiser 10577a3
added logic to get the pronunciations
gknisely 747a37e
updated init of the struct
gknisely b610dc7
updated output.
gknisely b00c7c4
added pronunciation to the osrm serializer
dgearhart ed358e6
Merge branch 'phonemes' of https://github.com/valhalla/valhalla into …
dgearhart 1335538
fixed issue where we were adding extra null chars
gknisely 494e57c
added kNone.
gknisely 4176cc4
moved language to the top as kNone is set to 1.
gknisely bdf8fe6
added kNone for PronunciationAlphabet Language
gknisely 1aedf48
format
gknisely 75d4574
Merge branch 'phonemes' of https://github.com/valhalla/valhalla into …
gknisely eaddc9f
fixed debug output
dgearhart 52d0631
removed kNone from proto pronunciation alphabet
dgearhart c0c1a3e
only read to end of the pronunciation using the header.length_
gknisely df449ae
refactored to use new structure for phonemes
gknisely fa928e6
save data out in new phoneme structure.
gknisely e2737cc
Merge branch 'phonemes' of https://github.com/valhalla/valhalla into …
gknisely 5f940f1
updated to support new structure
gknisely 9d6354f
removed name.size() > 1 logic and clean up
gknisely 5022e71
added comment
gknisely eb94aac
reduced some code. moved logic to AddPronunciation
gknisely a760014
cleanup
gknisely 6638061
added AddPronunciation and renamed BuildPronunciations
gknisely 979b34b
Merge branch 'master' of https://github.com/valhalla/valhalla into ph…
dgearhart 0f3afa5
lint
gknisely 651ff2c
Merge branch 'phonemes' of https://github.com/valhalla/valhalla into …
gknisely 2a8d429
lint
gknisely d92a493
should start at IPA
gknisely a14a076
refactor PronunciationAlphabetToString
dgearhart 484d5b1
Refactor Pronunciation_Alphabet_Name
dgearhart cd3654f
Merge branch 'master' of https://github.com/valhalla/valhalla into ph…
dgearhart b849ec4
account for empty phonemes
gknisely 5c17e1b
Merge branch 'phonemes' of https://github.com/valhalla/valhalla into …
gknisely 7d7f459
cp paste fail
gknisely e5f3c30
Merge branch 'master' of https://github.com/valhalla/valhalla into ph…
dgearhart c860d7b
Merge branch 'phonemes' of https://github.com/valhalla/valhalla into …
dgearhart 9218b0e
counts and begin indexes were off for pronunciations for signs when t…
gknisely 9233d7a
added count
gknisely 60b29f0
added tests for missing pronunciations for signs.
gknisely caaee19
Merge branch 'phonemes' of https://github.com/valhalla/valhalla into …
gknisely d750a7e
removed unused code.
gknisely 80ad5e7
adding more name check for blank names
gknisely 1701e6b
added TODO and addressed index issue.
gknisely 19465d9
removed debug statements.
gknisely c6e27a8
added blank name testing.
gknisely c49180c
updated to include OSM pronunciation tags
gknisely 4d640bd
Merge branch 'master' into phonemes
gknisely 7b92a2d
Merge branch 'master' of https://github.com/valhalla/valhalla into ph…
dgearhart d2b06e2
updated.
gknisely f108c60
cleanup
gknisely 2fea8e6
Merge branch 'phonemes' of https://github.com/valhalla/valhalla into …
gknisely File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Changed the name of the internal GetSigns method to ProcessSigns
- Loading branch information
commit 2711fb18178e3a5779703d79e396aef250b11e6a
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
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 |
---|---|---|
|
@@ -662,7 +662,8 @@ void AddTripIntersectingEdge(const AttributesController& controller, | |
GraphId beginnode = graphreader.GetBeginNodeId(intersecting_de, graphtile); | ||
valhalla::baldr::graph_tile_ptr t2 = graphreader.GetGraphTile(beginnode); | ||
size_t edge_idx = intersecting_de - t2->directededge(0); | ||
std::vector<SignInfo> edge_signs = t2->GetSigns(edge_idx); | ||
std::unordered_map<uint32_t, std::pair<uint8_t, std::string>> pronunciations; | ||
std::vector<SignInfo> edge_signs = t2->GetSigns(edge_idx, pronunciations); | ||
if (!edge_signs.empty()) { | ||
valhalla::TripSign* sign = intersecting_edge->mutable_sign(); | ||
AddSignInfo(controller, edge_signs, sign); | ||
|
@@ -865,8 +866,7 @@ TripLeg_Edge* AddTripEdge(const AttributesController& controller, | |
// Set the signs (if the directed edge has sign information) and if requested | ||
if (directededge->sign()) { | ||
// Add the edge signs | ||
std::unordered_multimap<uint32_t, std::pair<uint8_t, std::string>> pronunciations; | ||
|
||
std::unordered_map<uint32_t, std::pair<uint8_t, std::string>> pronunciations; | ||
std::vector<SignInfo> edge_signs = graphtile->GetSigns(idx, pronunciations); | ||
|
||
// TODO - debug output for testing - remove in the future | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @gknisely this should also be removed now |
||
|
@@ -886,7 +886,8 @@ TripLeg_Edge* AddTripEdge(const AttributesController& controller, | |
// Process the named junctions at nodes | ||
if (has_junction_name && start_tile) { | ||
// Add the node signs | ||
std::vector<SignInfo> node_signs = start_tile->GetSigns(start_node_idx, true); | ||
std::unordered_map<uint32_t, std::pair<uint8_t, std::string>> pronunciations; | ||
std::vector<SignInfo> node_signs = start_tile->GetSigns(start_node_idx, pronunciations, true); | ||
if (!node_signs.empty()) { | ||
valhalla::TripSign* trip_sign = trip_edge->mutable_sign(); | ||
for (const auto& sign : node_signs) { | ||
|
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: but i liked the previous name way better