Great Western Coffee Shop

Sideshoots - associated subjects => The Lighter Side => Topic started by: grahame on November 29, 2023, 23:36:32



Title: Why are we offering THIS story on the Coffee Shop?
Post by: grahame on November 29, 2023, 23:36:32
Quote
Travel & transport from BBC stories as at 22:35 29 Nov 2023
- Sticky Vicky: Legendary Benidorm dancer dies aged 80
- E-Scooters: over half of casualties are outside trial areas
- London travel: Uber launches black cab sign-ups

Our Travel and Transport story feed on the top of forum pages is combed from a BBC data feed, based on keywords found in the title and subtitle.  For the most part, the filtering words well and is reasonable but just occasionally I find myself scratching my head in wonder.  And so it was as I browsed this evening - "Sticky Vicky: Legendary Benidorm dancer dies aged 80" and wondered what she was to do with transport and travel. It turns out that the subtitle is "Sticky Vicky had a legendary status among Brits travelling to the Spanish resort on holiday." and there it is - a travel subject!

I am not proposing to fiddle with the algorithm which seems to work well enough; it's not safety or security code, it's never going to be perfect and always a bit subjective.   I encourage members to post here in "the lighter side" if we at the Coffee Shop offer such off-topic stories as this one (https://www.bbc.co.uk/news/newsbeat-67564925) in the future.



Title: Re: Why are we offering THIS story on the Coffee Shop?
Post by: Phantom on November 30, 2023, 11:29:32
Quote
Travel & transport from BBC stories as at 22:35 29 Nov 2023
- Sticky Vicky: Legendary Benidorm dancer dies aged 80
- E-Scooters: over half of casualties are outside trial areas
- London travel: Uber launches black cab sign-ups

Our Travel and Transport story feed on the top of forum pages is combed from a BBC data feed, based on keywords found in the title and subtitle.  For the most part, the filtering words well and is reasonable but just occasionally I find myself scratching my head in wonder.  And so it was as I browsed this evening - "Sticky Vicky: Legendary Benidorm dancer dies aged 80" and wondered what she was to do with transport and travel. It turns out that the subtitle is "Sticky Vicky had a legendary status among Brits travelling to the Spanish resort on holiday." and there it is - a travel subject!

I am not proposing to fiddle with the algorithm which seems to work well enough; it's not safety or security code, it's never going to be perfect and always a bit subjective.   I encourage members to post here in "the lighter side" if we at the Coffee Shop offer such off-topic stories as this one (https://www.bbc.co.uk/news/newsbeat-67564925) in the future.



Very random
Could it be that she had a connection to the railways in her past that was referenced within the story?


Title: Re: Why are we offering THIS story on the Coffee Shop?
Post by: grahame on November 30, 2023, 13:19:58
Very random
Could it be that she had a connection to the railways in her past that was referenced within the story?

No - it's the word "travelling" in the subtitle.  Here is the (PHP) code

Quote
$keywords_up = '/\b(train|station|express|fare|ferry|ships?\b|rail|bus\b|road|'.'aircraft|airport|travel|commuter|passenger|taxi)/i';
$keywords_down = '/\b(trainer|training|stationery|polling station|'.'travelled|farewell|trained|railed|'.'fire station|radio station|'.'power station|drive-through|lorry driver|vaccination drive)/i';



This page is printed from the "Coffee Shop" forum at http://gwr.passenger.chat which is provided by a customer of Great Western Railway. Views expressed are those of the individual posters concerned. Visit www.gwr.com for the official Great Western Railway website. Please contact the administrators of this site if you feel that content provided contravenes our posting rules ( see http://railcustomer.info/1761 ). The forum is hosted by Well House Consultants - http://www.wellho.net