PolMine / LinkTools

R package with tools for data linkage
GNU General Public License v3.0
0 stars 0 forks source link

Use inheritance to specify operation of `LTDataset` for different types of data #6

Open ablaette opened 1 year ago

ablaette commented 1 year ago

The LTDataset (R6) class says that field textual_data_type can be a character vector indicating the type of textual data (cwb or xml). Many if/else clauses can be omitted, and the readability of the code can be improved, if we would have a superclass (e.g. LTDEngine) with general methods and classes inheriting from this superclass (LTDEngineCWB, LTDEngineXML, LTDEngineQuanteda).