This function takes data in CoNLL-U format and a `svydesign` (from `survey` package) object with weights in it and merges the weights, and any additional columns into the formatted data.
Arguments
- data
A dataframe of text in CoNLL-U format, with optional additional columns.
- svydesign
A `svydesign` object containing the raw data which produced the `data`
- id
ID column from raw data, must match the `docid` in formatted `data`
- add_cols
Optional, a column (or columns) from the dataframe which contain other information you'd need (for instance, covariate column for splitting the data for comparison plots).
- add_weights
Optional, a boolean for whether to add weights from svydesign object, default is `TRUE`.