Skip to content

Commit

Permalink
Merge pull request #5 from jplu:master
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 224409654
  • Loading branch information
ramakumar1729 committed Dec 6, 2018
2 parents ad34142 + f539777 commit 931e4e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tensorflow_ranking/examples/tf_ranking_libsvm.py
Expand Up @@ -118,7 +118,7 @@ def load_libsvm_data(path, list_size):

def _parse_line(line):
"""Parses a single line in LibSVM format."""
tokens = line.split()
tokens = line.split("#")[0].split()
assert len(tokens) >= 2, "Ill-formatted line: {}".format(line)
label = float(tokens[0])
qid = tokens[1]
Expand Down

0 comments on commit 931e4e1

Please sign in to comment.