Skip to main content

helper pip package module for analyzing presidential speech records (including basic data)

Project description

president-speech

  • Presidents of the Republic of Korea Speeches
  • Parquet, provided in the form of sqlite db file
  • Comes with simple cli

SUMMARY OF PROVIDED DATA

president size min(date) max(date)
이승만 998 1948.07.24 1959.03.10
윤보선 3 1960.08.13 1960.09.15
박정희 1270 1963.12.17 1979.10.26
최규하 58 1979.10.27 1980.08.16
전두환 602 1980.06.05 1987.02.16
노태우 601 1988.02.25 1992.10.05
김영삼 728 1993.01.09 1998.01.23
김대중 822 1998.02.25 2003.02.17
노무현 780 2003.02.25 2008.01.28
이명박 1027 2008.02.25 2013.02.07
박근혜 493 2013.02.24 2016.10.26
문재인 1389 2017.05.10 2022.03.30

Use

$ ps-word-count -h     
usage: ps-word-count [-h] [-t | -p] word

Word frequency output from previous presidential speeches

positional arguments:
  word         Search word

optional arguments:
  -h, --help   show this help message and exit
  -t, --table  Table Format Output
  -p, --plot   Format Output
  
$ ps-word-count -p 독립
문재인  [954]  ****************************************
이승만  [430]  ******************
박정희  [361]  ****************
이명박  [176]  ********
김대중  [171]  ********
전두환  [169]  ********
노무현  [167]  *******
노태우  [131]  ******
김영삼  [114]  *****
박근혜  [ 71]  ***
최규하  [  4]  *
윤보선  [  0]

$ ps-word-count -t 독립
|    | president   |   mention |
|---:|:------------|----------:|
|  0 | 문재인      |       954 |
|  1 | 이승만      |       430 |
|  2 | 박정희      |       361 |
|  3 | 이명박      |       176 |
|  4 | 김대중      |       171 |
|  5 | 전두환      |       169 |
|  6 | 노무현      |       167 |
|  7 | 노태우      |       131 |
|  8 | 김영삼      |       114 |
|  9 | 박근혜      |        71 |
| 10 | 최규하      |         4 |
| 11 | 윤보선      |         0 |

Ref

Development environment setting

$ pdm add requests
$ pdm add -dG test pytest pytest-cov
$ docker build -t president_speech:0.2.0 .
$ docker run -d --name roh-moo-hyun020 -v "$PWD":/usr/src/app president_speech:0.2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

president-speech-0.6.0.tar.gz (26.5 MB view hashes)

Uploaded Source

Built Distribution

president_speech-0.6.0-py3-none-any.whl (26.5 MB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page