mirror of
https://github.com/wassname/multifit.git
synced 2026-09-09 11:27:26 +08:00
fix bug in the hack for poleval reddit
This commit is contained in:
@@ -41,7 +41,7 @@ def istitle(line):
|
||||
return len(re.findall(r'^ ?= [^=]* = ?$', line)) != 0
|
||||
|
||||
def read_wiki_articles(filename):
|
||||
if "reddit" in filename: # Temporary hack to handle poleval reddit dataset
|
||||
if "reddit" in str(filename): # Temporary hack to handle poleval reddit dataset
|
||||
return pd.read_csv(filename, header=None, names=["texts"]).fillna("")
|
||||
|
||||
articles = []
|
||||
|
||||
Reference in New Issue
Block a user