Skip to content

iakovleva/VU_keys

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VU_keys

  1. cleanup.py - script for standardizing search query. It includes remove_symbols, remove_phones, remove_cities, remove_regions, remove_countries, change_abbr functions.

Receives a string as input, returns the same string with:

  • correct abbreviations
  • special symbols removed
  • Russian cities and regions removed
  • phone numbers removed
  1. morpher_script.py is suplementary, it is used for forming lists of cities and regions in diffrerent cases.

  2. values.py contains ready lists of values that are passed to cleanup.

  3. The script reads and writes from PostgreSQL DB, table 'keys'. Initial value - column 'key', updated value is written to the column 'newkey'.

CREATE TABLE keys(
        key text,
        source text,
        newkey text);

About

Python script for search query optimizing

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages