jma127 / pyltr

Python learning to rank (LTR) toolkit
BSD 3-Clause "New" or "Revised" License
464 stars 107 forks source link

LETOR txt to pandas data frame converter #4

Closed stiebels closed 7 years ago

stiebels commented 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()

jma127 commented 7 years ago

Looks good, thanks a bunch!

jma127 commented 7 years ago

Just an FYI that I changed the class name from Pandas_Converter to PandasLetorConverter.

stiebels commented 7 years ago

Great! I will add some unit tests for it in the next days.