[PYTHON] I searched for railway senryu from the data

background

The other day (2017-01-26) TV Asahi "Ame Talk! The program was called "Railway Entertainer".

There, Mr. Darling Honey Yoshikawa was showing off something called "** Railroad Senryu **". It is said that the line of station names on the line happens to be 5, 7, and 5.

It looks like this;

Tsukuihama Miura Kaigan Misakiguchi
Tsukuihama Miura Kaigan Misakiguchi

Nezu Yushima Shin-ochanomizu Otemachi
Nezu Yushima Shin-ochanomizu Otemachi

I will look for this.

procedure

Code-GitHub Gist

result

I was able to discover 2 tanka phrases and 62 senryu phrases.

Tanka

01.JR Iida Line(Toyohashi-Tenryukyo)
Kamiichiba Urakawa Hayase Shimokawaai Chubutenryu Sakuma Aizuki
Kamiichiba Urakawa is thin and cute Chubutenryu Sakuma Aizuki

02.JR Kansai Main Line(Kamo-JR Namba)
Koriyama Yamato Koizumi Horyuji Temple Oji Misato Kawachi Kenjo
Koriyama Yamato Koizumi Horyuji Ouji Sango Kawachika Takami

Senryu

01.Sangi Railway Sangi Line
Ise-Hatta Higashi Fujiwara Nishinojiri
Isehata Higashi Fujiwara Nishijiri

02.JR Sanin Main Line(Yonago-Masuda)
Hashi Kushiro Shimofu Hamada Nishi Hamada
Kushiro Moko is not yet

03.Toyohashi Railroad Atsumi Line
Oshimizu Oitsu Sugiyama Yagumadai
Oshimizu Otsuo Yamaya Gumai

04.JR Fukuen Line
Michigami Managura Ekiya Chikada Tote
Michinoue Managura Ekiya Chikata

05.JR Kansai Main Line(Kameyama-Kamo)
Kada Tsuge Shindo Sanagu Iga Ueno
Kabuto Boxwood Shindo Sanag Iga Ueno

06.JR Yosan Line / Uchiko Line
Iyo Yokota Torinoki Iyo City Mukaibara
Iyo Kota Tori no Kiyoshi Mukai Rose

07.Keihan Main Line
Tambabashi Fushimi Momoyama Chushojima
Tambabashi Fushimi Momoyama Chushojima

08.Toyama Chiho Railway Main Line
Nishi-Uozu Dentetsu Uozu Shin-Uozu
Uozu Uozu Uozu Uozu

09.Keikyu Kurihama Line
Tsukuihama Miura Kaigan Misakiguchi
Tsukuihama Miura Kaigan Misakiguchi

10.JR Iida Line(Toyohashi-Tenryukyo)
Kamiichiba Urakawa Hayase Shimokawaai
Kamiichiba Urakawa is thin and cute

11.Hisatsu Orange Railway Line
Higo Takada Hinagu Onsen Higo Futami
Higo Koda Hinagu Onsen Higo Futami

12.Hankyu Takarazuka Main Line
Mefu Shrine Kiyoshikojin Takarazuka
Mefu Shrine Kiyoshikojin Takarazuka

13.JR Sanin Main Line(Sonobe-Toyooka)
Kami-Yakuno Yanase Wadayama Yabu Yaka
Kamiyaku no Yanase Wadayama Yabu

14.Tobu Noda Line
Shinkashiwa Masuo Sakasai Takayanagi
Shinkashiwa Masu Osakasai Takayanagi

15.JR Gono Line
Mutsu Morita Nakata Wooden Goshogawara
Goshogawara

16.JR Tohoku Main Line
Nogi Mamada Oyama Koganei Jichiidai
Nogi Mama Koyama Koganei Jichiidai

17.Chiba Urban Monorail Line 2
Oguradai Chishirodaikita Chishirodai
Oguradai Chishirodai Iki Chishirodai

18.Nankai Takano Line
Tezukayama Sumiyoshi Higashi Sawanocho
Tezukayama Sumiyoshi Higashi Sawa no Cho

19.Nankai Takano Line
Kii Shimizu Kamuro Kudoyama Koyashita
Kudoyama Kudoyama

20.JR Chuo / Sobu Line
Shinanomachi Yotsuya Ichigaya Iidabashi
Shinanomachi Yotsuya Ichigaya Iidabashi

21.JR Chuo / Sobu Line
Kinshicho Kameido Hirai Shinkoiwa
Kinshicho Kameido Hirai Shinkoiwa

22.JR Chuo / Sobu Line
Shin-Koiwa Koiwa Ichikawa Motoyawata
Shin-Koiwa Koiwa Ichikawa Motoyawata

23.Meitetsu Inuyama Line
Stone Buddha Buddha Hotei Gangnam Kashiwamori
Ishibotoke Hotei Kashiwamori

24.JR Kisei Main Line
Odomari Kumano City Arii Koshiyama
Odomari Kumano City Ariikoshiyama

25.JR Tohoku Main Line(Kuroiso-Rifu / Morioka)
Gohyakugawa Motomiya Sugita Nihonmatsu
Gohyakugawa Motomiya Too much Nihonmatsu

26.JR Tohoku Main Line(Kuroiso-Rifu / Morioka)
Nihonmatsu Adachi Matsukawa Kanayagawa
Nihonmatsu Adachi Matsukawa Kanayagawa

27.JR Joban Line(Iwaki-Sendai)
Hisanohama Suetsugi Hirono Kido Tatsuda
Hisanohama Suetsugu Hirono no Kidatsuta

28.North Shinano Line
Kitanagano 3 years old Toyono Murei Kouma
Kitanagano Sansai Toyo no Mure Furuma

29.JR Iiyama Line
Kami-Kuwanagawa Kami-Kuwanagawa
Kami Sakai Kami Kuwana Waku Wanagawa

30.JR Tokaido Main Line(Hamamatsu-Gifu)
Aichi Mito Mikawa Otsuka Mikawa Miya
Aichimi and Mikawa Otsuka Mikawamiya

31.JR Uchibo Line
Soga Hamano Yawatajuku Goi Anegasaki
Sogahamano Yawata Juku Great Anegasaki

32.JR Narita Express
Ikebukuro Shinjuku Takao Hachioji
Ikebukuro Shinjuku Takao Hachioji

33.Tokyo Metro Namboku Line
Iidabashi Ichigaya Yotsuya Nagatacho
Ichigaya Ichigaya Nagatachi

34.JR Minobu Line
Hadakajima Shimobe Onsen Kai Tokiwa
Hadakajima Shimobeonsen Kaitokiwa

35.JR Minobu Line
Kai-Tokiwa Ichinose Kunado Kai-Iwama
Kaitokiwa Ichinoseku etc.

36.JR Tazawako Line
Ugo Yotsuya Kita Omagari Omagari
Ugoyotsuya Kita Omagari Omagari

37.Shin-Keisei Electric Railway Shin-Keusei Line
Takanekido Takane Kodan Takifudo
Takanekido Takane Kodan Takifudo

38.JR Kitakami Line
Ezuriko Yanagihara Fujine Tatekawame
Yanagihara Ezuriko Fujine Tatekawame

39.Matsuura Railway Nishikyushu Line(Arita-Imari)
Nishi Arita Oki Yamadani Meotoishi
Ogi that was in the middle of the night

40.JR Kisei Main Line(Shingu-Wakayama)
Shimizuura Hainan Kuroe Kimiidera
Shimizuura Kainan Kuroe Kimiidera

41.JR Hakodate Main Line(Otaru-Asahikawa)
Osamunai Ino Chikabumi Asahikawa
Osamunai Inou Chikabumi Asahikawa

42.Tobu Sano Line
Tatebayashi Watase Tajima Sano City Sano
Tatebayashi Watarase Tajima Sasano

43.Meitetsu Nagoya Main Line
Shin-Kiyosu Osato Okuda Kokufumiya
Shinkiyoshi Osato Okuda Konomiya

44.Matsuura Railway Nishikyushu Line(Imari-Sasebo)
Sasa Koura Masaru Tanagata Aiura
Saza Kora Masaru Tanagata Ainoura

45.Toden-Arakawa Line
Asukayama in front of Sakaecho Oji Station
Sakaecho Oujiekimae Asukayama

46.Mizuma Railway Mizuma Line
Koginosato Ishizai Sechigo Nagoshi Mori
Koginosato Ishizai Sechigo Nagosemori

47.Eizan Electric Railway Kurama Line
Ninose Chaya Ichihara Ninose Kibuneguchi
Nikencha and Ichihara Nisekibuneguchi

48.Tobu Isesaki Line
Kanegafuchi Horikiri Ushida Kitasenju
Kanegafuchi Horikiri Ushida Kitasenju

49.Tokyo Metro Chiyoda Line
Nezu Yushima Shin-ochanomizu Otemachi
Nezu Yushima Shin-ochanomizu Otemachi

50.JR Takayama Main Line
Mino Ota Furui Nakakawabe Aso
Mino Ota Kobi Nakagawa

51.JR Ofunato Line
Wakinosawa Otomo Hosoura Shimo-Funato
Wakinosawa Otomo Hosora Shimofunato

52.Sanyo Electric Railway Main Line
Nishi-Futami Harima Town Beppu Hamanomiya
Nishifutami Harimacho Befuhama no Miya

53.Yamagata Railway Flower Nagai Line
White rabbit, silkworm, mulberry, Ayukai, Shikinosato
Rabbit Rabbit Ayukai Shikinosato

54.Keihan Ishiyama Sakamoto Line
Hamaotsu Miidera Bessho Prince Mountain
Hamazushi Miidera Bessho Oujiyama

55.JR Kansai Main Line(Kamo-JR Namba)
Koriyama Yamato Koizumi Horyuji Temple
Koriyama Yamato Koizumi Horyuji

56.JR Furano Line
Kita-Biei Biei Bibaushi Kamifurano
Biei Biei Biei Kamifurano

57.JR Kagoshima Main Line(Shimonoseki / Mojiko-Hakata)
Jinnoharu Orio Mizumaki Onga River
Jinnoharu Ori Mizumaki Ongawa

58.JR Tokushima Line
Akui Fuchu Ishii Shimoura Ushijima
Shimoura Dermatology

59.Hanshin Main Line
Koshien Kusugawa Imazu Nishinomiya
Koshien Kusugawa Imazu Nishinomiya

60.Tobu Tojo Line
Asakadai Shiki Yanasegawa Mizuhodai
Asakadai Shiki Yanasegawa Mizuhodai

61.JR Hakodate Main Line(Hakodate-Oshamambe)
Oshironai Higashimori Mori Katsura River
Uninteresting Higashimorimori Katsura River

62.Hankyu Kyoto Main Line
Takatsuki City Tonda Sochiji Temple Ibaraki City
Takatsuki Shitonda Sochiji Ibaraki City

Task

Literature

-How to get master data of stations and routes --Qiita -Free download of station data "Station data.jp" -List of station names nationwide


-[Railway senryu] made with a route map is interesting w Furthermore, we are investigating "600 routes nationwide" (140 phrases posted). --NAVER Matome -Boom now? Railroad senryu I tried "Continuous station name 575 on the route map" --Excite Bit connector -Chanced Tanka bot (@ g57577) | Twitter -Chance Tanka -Extract tanka from sentences with morphological analysis engine MeCab --inaniwa3's blog -Automatic generation of Masashi Sada Senryu-Qiita -I want to find BKB hidden in everyday life-I want 30 billion yen


Recommended Posts

I searched for railway senryu from the data
[Python] I searched for the longest Pokemon Shiritori
I searched for the contents of CloudWatch Logs Agent
I tweeted from the terminal!
I searched for CD commands.
Shift the data for 3 months Shift the data for n months
Studying web scraping for the purpose of extracting data from Filmarks # 2
I tried logistic regression analysis for the first time using Titanic data
I tried tensorflow for the first time
I saved the scraped data in CSV!
I wrote the code for Gibbs sampling
I searched for prime numbers in python
For the first time in Numpy, I will update it from time to time
I touched the data preparation tool Paxata
[Python] I searched for various types! (Typing)
Data Science Virtual Machines is the best environment for data analysis from now on!
I tried to process and transform the image and expand the data for machine learning
I searched for the skills needed to become a web engineer in Python
I tried using scrapy for the first time
I checked the library for using the Gracenote API
[Python] I tried substituting the function name for the function name
I tried hitting the Qiita API from go
vprof --I tried using the profiler for Python
I tried to save the data with discord
I played with Floydhub for the time being
I tried python programming for the first time.
[Data analysis] Should I buy the Harumi flag?
I tried Mind Meld for the first time
As a beginner, I searched the / proc directory
Call Polly from the AWS SDK for Python
The transition of baseball as seen from the data
The guy who gets fitbit data from the server
[CodeIQ] I wrote the probability distribution of dice (from CodeIQ math course for machine learning [probability distribution])
When I searched for "as a Service" from AaaS to ZaaS, I saw various services.
[Deep Learning from scratch] I implemented the Affine layer
Clean up the Cloud pak for Data deployment space
What I got into Python for the first time
I tried Python on Mac for the first time.
I tried the MNIST tutorial for beginners of tensorflow.
I tried to predict the J-League match (data analysis)
Send log data from the server to Splunk Cloud
I tried python on heroku for the first time
For the first time, I learned about Unix (Linux).
Mongodb Shortest Introduction (2) I searched for tens of thousands
I wanted to use the Python library from MATLAB
The one that graphs the one that got the fitbit data from the server
I tried clustering ECG data using the K-Shape method
I examined the data mapping between ArangoDB and Java
I tried using the API of the salmon data project
I will install Arch Linux for the time being.
I tried collecting data from a website with Scrapy
The guy who generates markdown for Hugo from Qiita
I tried reading data from a file using Node.js.
AI Gaming I tried it for the first time
I read the Chainer reference (updated from time to time)