Skip to content

Latest commit

 

History

History
129 lines (97 loc) · 6.02 KB

library-available-chats.rst

File metadata and controls

129 lines (97 loc) · 6.02 KB

Library available chats

For the purpose of showcasing code examples and benchmarking different implementations, we have created a pool of chats, hosted in the official repository page. If you want to test the library with one of your own tests, check in the code examples <Load chat>.

The chats are available via their corresponding URLs, which are listed in source code whatstk.data.

Contents

WhatsApp

Object whatsapp_urls contains all URLs for WhatsApp chats.

>>> from whatstk.data import whatsapp_urls

POKEMON

Brief fictional chat with Pokemon characters, which was manually designed by @lucasrodes in commit 666d6ea9cc030c4322fbe44ae64b8f1a0fdb5169.

>>> from whatstk.data import whatsapp_urls
>>> from whatstk import WhatsAppChat
>>> chat = WhatsAppChat.from_source(filepath=whatsapp_urls.POKEMON)
>>> chat.df.head(5)
                 date     username                                            message
0 2016-08-06 13:23:00  Ash Ketchum                                          Hey guys!
1 2016-08-06 13:25:00        Brock              Hey Ash, good to have a common group!
2 2016-08-06 13:30:00        Misty  Hey guys! Long time haven't heard anything fro...
3 2016-08-06 13:45:00  Ash Ketchum  Indeed. I think having a whatsapp group nowada...
4 2016-08-06 14:30:00        Misty                                          Definetly

LOREM

Chat with 500 interventions of fictional users, generated using python-lorem library.

>>> from whatstk.data import whatsapp_urls
>>> from whatstk import WhatsAppChat
>>> chat = WhatsAppChat.from_source(filepath=whatsapp_urls.LOREM)
>>> chat.df.head(5)
                 date        username                                            message
0 2020-01-15 02:22:56            Mary                     Nostrud exercitation magna id.
1 2020-01-15 03:33:01            Mary     Non elit irure irure pariatur exercitation. 🇩🇰
2 2020-01-15 04:18:42  +1 123 456 789  Exercitation esse lorem reprehenderit ut ex ve...
3 2020-01-15 06:05:14        Giuseppe  Aliquip dolor reprehenderit voluptate dolore e...
4 2020-01-15 06:56:00            Mary              Ullamco duis et commodo exercitation.

LOREM1

Chat with 300 interventions of fictional users, generated using python-lorem.

>>> from whatstk.data import whatsapp_urls
>>> from whatstk import WhatsAppChat
>>> chat = WhatsAppChat.from_source(filepath=whatsapp_urls.LOREM1)
>>> chat.df.head(5)
                 date        username                                            message
0 2019-10-20 10:16:00            John        Laborum sed excepteur id eu cillum sunt ut.
1 2019-10-20 11:15:00            Mary  Ad aliquip reprehenderit proident est irure mo...
2 2019-10-20 12:16:00  +1 123 456 789  Nostrud adipiscing ex enim reprehenderit minim...
3 2019-10-20 12:57:00  +1 123 456 789  Deserunt proident laborum exercitation ex temp...
4 2019-10-20 17:28:00            John                Do ex dolor consequat tempor et ex.

LOREM2

Chat with 300 interventions of fictional users, generated using python-lorem.

Can be used along with LOREM1 to test chat merging functionalities <whatstk.WhatsAppChat.merge> or multiple-source loading <Load chat from multiple sources>.

>>> from whatstk.data import whatsapp_urls
>>> from whatstk import WhatsAppChat
>>> chat = WhatsAppChat.from_source(filepath=whatsapp_urls.LOREM2)
>>> chat.df.head(5)
                 date        username                                            message
0 2020-06-20 10:16:00            John                 Elit incididunt lorem sed nostrud.
1 2020-06-20 11:15:00           Maria        Esse do irure dolor tempor ipsum fugiat. 🇩🇰
2 2020-06-20 12:16:00  +1 123 456 789  Cillum anim non eu deserunt consectetur dolor ...
3 2020-06-20 12:57:00  +1 123 456 789                  Non ipsum proident veniam est. 🏊🏻
4 2020-06-20 17:28:00            John                      Dolore in cupidatat proident.

LOREM_2000

Chat with 2000 interventions of fictional users, generated using python-lorem.

>>> from whatstk.data import whatsapp_urls
>>> from whatstk import WhatsAppChat
>>> chat = WhatsAppChat.from_source(filepath=whatsapp_urls.LOREM_2000)
>>> chat.df.head(5)
                 date        username                                            message
0 2019-04-16 02:09:00  +1 123 456 789           Et labore proident laboris do labore ex.
1 2019-04-16 03:01:00            Mary  Reprehenderit id aute consectetur aliquip nost...
2 2019-04-17 12:56:00            John  Amet magna officia ullamco pariatur ipsum cupi...
3 2019-04-17 13:30:00            Mary  Cillum aute et cupidatat ipsum, occaecat lorem...
4 2019-04-17 15:09:00            John  Eiusmod irure laboris dolore anim, velit velit...