mirror of
https://github.com/wassname/multifit.git
synced 2026-10-29 13:20:17 +08:00
fix bug in the hack for poleval reddit
This commit is contained in:
1 parent
a7ac4f5170
commit
68d6b1c829
1 file changed
+1
-1
@@ -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