Closed stiebels closed 7 years ago
Takes LETOR .txt file, applies various string manipulations and outputs Pandas data frame in suitable format.
Usage:
conv = Letor_Converter('/home/user/letor/Fold1/train.txt') df_train_fold1 = conv.convert()
conv = Letor_Converter('/home/user/letor/Fold1/train.txt')
df_train_fold1 = conv.convert()
Looks good, thanks a bunch!
Just an FYI that I changed the class name from Pandas_Converter to PandasLetorConverter.
Great! I will add some unit tests for it in the next days.
Takes LETOR .txt file, applies various string manipulations and outputs Pandas data frame in suitable format.
Usage:
conv = Letor_Converter('/home/user/letor/Fold1/train.txt')
df_train_fold1 = conv.convert()