Hi,
I think i found a new issues.
So two cities name like "stockholm warsaw" equal to 1.
if it's two cities name like "stockholm to warsaw" it will be equal to 2.
Why the "to" needed, nlp was not human, the result should be the same like the second example.
thanks
my current fix for now,
var foundTo = text.search("to");
console.log("FOUND TO"+foundTo);
if(foundTo == -1){
text = text.replace(/ /," to ");
}
it will replace the first space with "to".
hi Rheza, oh, this is a good point. "CityA to CityB" should be two places for sure.
let me fix it.
Just to make sure you understand. The "CityA CityB" should equal to 2 like on "CityA to CityB".
So,
"CityA CityB" length = 2
"CityA to CityB" length = 2
Thanks
Any updates on this ?, Really hope this one fixed quickly. :D
yeah, this may be fixed in 6.4.0 actually.
check it out?
@spencermountain Thanks man. looking forward to it.
@rheza at the expense of sounding a little brash, you realize this is an open source project. @spencermountain does not work for you. If this is an issue that is blocking you, you are able to submit a pull request directly or pay someone to patch it or help maintain it.
Please show a little respect to all the people who work tirelessly on these projects.
@silentrob
I know it's open source project and I know nobody works for me on this project. I was just asking status. Sorry if it's sound too much. I wish I understand how to solve this. Let me learn first. Hopefully not that hard. Thank you.
hey Rheza, think I got this fixed in 6.4.4.
stockholm warsaw -> 2 termsstockholm to warsaw -> 3 termsit's not perfect, "smallCity1 smallCity2" may still lump together, if it's not in our city list.
cheers!
Yeah, Looks like it still failing on certain circumstances, especially places added with lexicon. Will post the full log if i have time. Thank you so much for your effort.
Most helpful comment
Just to make sure you understand. The "CityA CityB" should equal to 2 like on "CityA to CityB".
So,
"CityA CityB" length = 2
"CityA to CityB" length = 2
Thanks