Skip to content

Instantly share code, notes, and snippets.

View sureshgorakala's full-sized avatar

Suresh Gorakala sureshgorakala

  • www.dataperspective.info
View GitHub Profile
@louislung
louislung / 0_Readme.md
Last active September 30, 2021 11:59
Implement LambdaRank using tensorflow 2.0
import nltk
#reading text into python
path = "~/textCourpus.txt"
f = open(path,'r')
lines = [line.replace('\n','') for line in f.readlines()]
#lines2 = [line.replace('\n','') for line in f.readlines()]
type(lines)
len(lines)