# MSM

## Instructions


<h2> Usage </h2>

<h3> 1. Install Prerequisites </h3>

Create a python 3.8 environment and then install the requirements.

Install packages using "requirements.txt"

```
conda create -name msm python=3.8
pip install -r requirements.txt
```

<h3> 2. Training MFMA </h3>
```
python train_fb.py --mask_ratio1 $MASK_ARTICLE \
                   --mask_ratio2 $MASK_ARTICLE \
```
<h3> 3. Generating Negative Summaries with MFMA </h3>
```
python infer_fb.py --mask_ratio1 $MASK_ARTICLE \
                   --mask_ratio2 $MASK_ARTICLE \
```

<h3> 4. Training Factual Consistency Checking Model using the Data </h3>
```
python train_metric.py --datadir $DATA_PATH \
```