diff --git a/libcorpus2/ann/annotatedsentence.cpp b/libcorpus2/ann/annotatedsentence.cpp index 7203d85d7fa69b597f0de1168e0aec8bac78185e..097fe4ef740fcbae9b0805320469d5b364104eb1 100644 --- a/libcorpus2/ann/annotatedsentence.cpp +++ b/libcorpus2/ann/annotatedsentence.cpp @@ -6,8 +6,8 @@ namespace Corpus2 { -AnnotatedSentence::AnnotatedSentence() - : Sentence(), channels_() +AnnotatedSentence::AnnotatedSentence(const std::string &id) + : Sentence(id), channels_() { } diff --git a/libcorpus2/ann/annotatedsentence.h b/libcorpus2/ann/annotatedsentence.h index c69203bfc8a7101061052f1ed486cd4bd3159b77..b1207f48cd86ac33cf340012c4168c8cc63f9a10 100644 --- a/libcorpus2/ann/annotatedsentence.h +++ b/libcorpus2/ann/annotatedsentence.h @@ -37,7 +37,7 @@ public: /** * Create an empty AnnotatedSentece with no tokens and no channels */ - AnnotatedSentence(); + AnnotatedSentence(const std::string &id = ""); ~AnnotatedSentence();