diff --git a/swig/libcorpustag.i b/swig/libcorpustag.i
index 4184bca38e9e286c4902a10f2223816866a2acc4..0197662fe0b59e1d699581e0709d180f746fbd31 100644
--- a/swig/libcorpustag.i
+++ b/swig/libcorpustag.i
@@ -17,6 +17,9 @@
 
 %feature("notabstract") Corpus2::Tag;
 
+%rename(__op_eq__) Corpus2::Tag::operator==(const Tag& other) const;
+%rename(__op_lw__) Corpus2::Tag::operator<(const Tag& other) const;
+
 namespace Corpus2 {
   class Tag {
   public: