Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cornac/data/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def rm_numeric(t: str) -> str:

def rm_punctuation(t: str) -> str:
"""
Remove "!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~" from t.
Remove "!"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~" from t.
"""
return t.translate(str.maketrans('', '', string.punctuation))

Expand Down
2 changes: 1 addition & 1 deletion cornac/models/coe/coe.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import numpy as np
import torch

"""Firstly, we define a helper function to generate\sample training ordinal triplets:
"""Firstly, we define a helper function to generate\\sample training ordinal triplets:
Step 1:
given rated item i, randomly choose item j and check whether rating of j is lower than i,
if not randomly sample another item.
Expand Down