diff --git a/swig/annotatedsentence.i b/swig/annotatedsentence.i
index a00344cd0d856ec118899dad738b95ea7b0cfb5f..87cb5a34cc71ce228d850fee00178ea95883f07a 100644
--- a/swig/annotatedsentence.i
+++ b/swig/annotatedsentence.i
@@ -59,7 +59,7 @@ namespace Corpus2 {
     std::string annotation_info() const;
   };
 
-boost::shared_ptr<AnnotationView> create_view(
+boost::shared_ptr<Corpus2::AnnotationView> create_view(
         const boost::shared_ptr<AnnotatedSentence>& s,
         const std::string& ann_name);
 }