Skip to content

AAA-Intelligence/parser

Repository files navigation

parser

WhatsApp parser to create a chat corpus

preconditions

  • git installed
  • node installed
  • yarn installed
  • python installed

how to run

Installation

Clone repository:

git clone https://github.com/AAA-Intelligence/parser

Install dependencies:

yarn
pip install -r requirements.txt

Setup

Put your chat.txt file into the root path of the repository

Run

macOS / Linux

./parse.sh "Name of first person" "Name of second person" OS

OS: 1 for iOS exported Chats 0 for Android exported Chats

Example for Android

./parse.sh "Leon" "Niklas" 0

Example for iOS

./parse.sh "Leon" "Niklas" 1

Windows

.\parse.ps1 "Name of first person" "Name of second person" OS

OS: 1 for iOS exported Chats 0 for Android exported Chats

Example for Android

.\parse.ps1 "Leon" "Niklas" 0

Example for iOS

.\parse.ps1 "Leon" "Niklas" 1

You should see your parsed chat in the /export folder and the generated chat data in /chat-data.