Implements the automatic Key-point Analysis using a trained model.
Download the state from here and extract into a state/ folder. Install the requirements.txt. Then. run as follows:
python3 argkp.py <INFILE>
As input, argkp.py requires a .csv file with the following columns:
df['english']-> an english sentence or comment.df['extracted_from']-> 'pro' or 'con' depending on the stance of the comment.df['project_id']-> a subclassification for project-dependent comments (also called "option"), can be selected using--option <NUM>.df['quality_scores']-> an argument quality score between 0 and 1.