Skip to content
Snippets Groups Projects
Commit 091e867e authored by Igor's avatar Igor Committed by Igor Danielewicz
Browse files

Added autodoc

parent e5e241a1
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
find -type f -name "*.i" | xargs sed -i 's/^namespace Corpus2/\n%feature("autodoc", "1");\nnamespace Corpus2/'
...@@ -20,6 +20,8 @@ ...@@ -20,6 +20,8 @@
%template(AnnotatedSentencePtr) boost::shared_ptr<Corpus2::AnnotatedSentence>; %template(AnnotatedSentencePtr) boost::shared_ptr<Corpus2::AnnotatedSentence>;
%template(ConstAnnotatedSentencePtr) boost::shared_ptr<const Corpus2::AnnotatedSentence>; %template(ConstAnnotatedSentencePtr) boost::shared_ptr<const Corpus2::AnnotatedSentence>;
%feature("autodoc", "1");
namespace Corpus2 { namespace Corpus2 {
class MissingAnnotationChannel : public Corpus2Error { class MissingAnnotationChannel : public Corpus2Error {
public: public:
......
...@@ -23,6 +23,8 @@ ...@@ -23,6 +23,8 @@
%template(AnnotationChannelPtr) boost::shared_ptr<Corpus2::AnnotationChannel>; %template(AnnotationChannelPtr) boost::shared_ptr<Corpus2::AnnotationChannel>;
%template(ConstAnnotationChannelPtr) boost::shared_ptr<const Corpus2::AnnotationChannel>; %template(ConstAnnotationChannelPtr) boost::shared_ptr<const Corpus2::AnnotationChannel>;
%feature("autodoc", "1");
namespace Corpus2 { namespace Corpus2 {
struct Annotation { struct Annotation {
Annotation() : indices(), head_index(-1), seg_number(0) {} Annotation() : indices(), head_index(-1), seg_number(0) {}
......
...@@ -18,6 +18,8 @@ ...@@ -18,6 +18,8 @@
%nodefaultctor Corpus2::TokenWriter; %nodefaultctor Corpus2::TokenWriter;
%feature("autodoc", "1");
namespace Corpus2 { namespace Corpus2 {
class AnnotationView : public Corpus2::Sentence { class AnnotationView : public Corpus2::Sentence {
public: public:
......
...@@ -10,6 +10,8 @@ ...@@ -10,6 +10,8 @@
%include "document.i" %include "document.i"
%include "boost_shared_ptr.i" %include "boost_shared_ptr.i"
%feature("autodoc", "1");
namespace Corpus2 { namespace Corpus2 {
namespace whole { namespace whole {
class CclRelReader { class CclRelReader {
......
...@@ -21,6 +21,8 @@ ...@@ -21,6 +21,8 @@
%template(ConstChunkPtr) boost::shared_ptr<const Corpus2::Chunk>; %template(ConstChunkPtr) boost::shared_ptr<const Corpus2::Chunk>;
%template(ChunkPtrVector) std::vector< boost::shared_ptr<Corpus2::Chunk> >; %template(ChunkPtrVector) std::vector< boost::shared_ptr<Corpus2::Chunk> >;
%feature("autodoc", "1");
namespace Corpus2 { namespace Corpus2 {
class Chunk { class Chunk {
public: public:
......
...@@ -12,6 +12,8 @@ ...@@ -12,6 +12,8 @@
%template(CorpusPtr) boost::shared_ptr<Corpus2::whole::Corpus>; %template(CorpusPtr) boost::shared_ptr<Corpus2::whole::Corpus>;
%template(ConstCorpusPtr) boost::shared_ptr<const Corpus2::whole::Corpus>; %template(ConstCorpusPtr) boost::shared_ptr<const Corpus2::whole::Corpus>;
%feature("autodoc", "1");
namespace Corpus2 { namespace Corpus2 {
namespace whole { namespace whole {
class Corpus { class Corpus {
......
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,8 @@
%template(CorpusReaderPtrVector) std::vector<boost::shared_ptr<Corpus2::whole::CorpusReader> >; %template(CorpusReaderPtrVector) std::vector<boost::shared_ptr<Corpus2::whole::CorpusReader> >;
%feature("autodoc", "1");
namespace Corpus2 { namespace Corpus2 {
namespace whole { namespace whole {
class CorpusReader { class CorpusReader {
......
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,8 @@
%template(DocumentPtrVector) std::vector<boost::shared_ptr<Corpus2::whole::Document> >; %template(DocumentPtrVector) std::vector<boost::shared_ptr<Corpus2::whole::Document> >;
%feature("autodoc", "1");
namespace Corpus2 { namespace Corpus2 {
namespace whole { namespace whole {
class Document { class Document {
......
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,8 @@
%template(DocumentReaderPtrVector) std::vector<boost::shared_ptr<Corpus2::whole::DocumentReader> >; %template(DocumentReaderPtrVector) std::vector<boost::shared_ptr<Corpus2::whole::DocumentReader> >;
%feature("autodoc", "1");
namespace Corpus2 { namespace Corpus2 {
namespace whole { namespace whole {
class DocumentReader { class DocumentReader {
......
...@@ -10,6 +10,8 @@ ...@@ -10,6 +10,8 @@
%include "libpwrnlperror.i" %include "libpwrnlperror.i"
%feature("autodoc", "1");
namespace Corpus2 { namespace Corpus2 {
class Corpus2Error : public PwrNlp::PwrNlpError { class Corpus2Error : public PwrNlp::PwrNlpError {
public: public:
......
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,8 @@
%rename(IOB_to_string) Corpus2::IOB::to_string; %rename(IOB_to_string) Corpus2::IOB::to_string;
%rename(IOB_from_string) Corpus2::IOB::from_string; %rename(IOB_from_string) Corpus2::IOB::from_string;
%feature("autodoc", "1");
namespace Corpus2 { namespace Corpus2 {
namespace IOB { namespace IOB {
enum Enum { enum Enum {
......
...@@ -17,6 +17,8 @@ ...@@ -17,6 +17,8 @@
%template(LexemeVector) std::vector<Corpus2::Lexeme>; %template(LexemeVector) std::vector<Corpus2::Lexeme>;
%feature("autodoc", "1");
namespace Corpus2 { namespace Corpus2 {
class Lexeme { class Lexeme {
public: public:
......
...@@ -19,6 +19,8 @@ ...@@ -19,6 +19,8 @@
using std::string; using std::string;
%feature("autodoc", "1");
namespace Corpus2 { namespace Corpus2 {
namespace whole { namespace whole {
class DirectionPoint { class DirectionPoint {
......
...@@ -16,6 +16,8 @@ ...@@ -16,6 +16,8 @@
%constant std::string RELATION_SENTENCE_ID = Corpus2::whole::RELATION_SENTENCE_ID; %constant std::string RELATION_SENTENCE_ID = Corpus2::whole::RELATION_SENTENCE_ID;
%constant std::string RELATION_CHANNEL_NAME = Corpus2::whole::RELATION_CHANNEL_NAME; %constant std::string RELATION_CHANNEL_NAME = Corpus2::whole::RELATION_CHANNEL_NAME;
%feature("autodoc", "1");
namespace Corpus2 { namespace Corpus2 {
namespace whole { namespace whole {
class RelationReader { class RelationReader {
......
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
%} %}
%feature("autodoc", "1");
namespace Corpus2 { namespace Corpus2 {
namespace whole { namespace whole {
class RelationWriter { class RelationWriter {
......
...@@ -16,6 +16,8 @@ ...@@ -16,6 +16,8 @@
%template(SentencePtrVector) std::vector<boost::shared_ptr<Corpus2::Sentence> >; %template(SentencePtrVector) std::vector<boost::shared_ptr<Corpus2::Sentence> >;
%template(ConstSentencePtrVector) std::vector<boost::shared_ptr<const Corpus2::Sentence> >; %template(ConstSentencePtrVector) std::vector<boost::shared_ptr<const Corpus2::Sentence> >;
%feature("autodoc", "1");
namespace Corpus2 { namespace Corpus2 {
class Sentence { class Sentence {
public: public:
......
...@@ -19,6 +19,8 @@ ...@@ -19,6 +19,8 @@
%template(TagVector) std::vector<Corpus2::Tag>; %template(TagVector) std::vector<Corpus2::Tag>;
%feature("autodoc", "1");
namespace Corpus2 { namespace Corpus2 {
class Tag { class Tag {
public: public:
......
...@@ -12,6 +12,8 @@ ...@@ -12,6 +12,8 @@
%include "tagset.i" %include "tagset.i"
%include "token.i" %include "token.i"
%feature("autodoc", "1");
namespace Corpus2 { namespace Corpus2 {
Tag get_attribute_mask(const Tagset& tagset, Tag get_attribute_mask(const Tagset& tagset,
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
%{ %{
#include <libcorpus2/tagset.h> #include <libcorpus2/tagset.h>
%} %}
%include "tag.i" %include "tag.i"
%include "exception.i" %include "exception.i"
...@@ -18,6 +17,8 @@ ...@@ -18,6 +17,8 @@
%template(TagsetPtr) boost::shared_ptr<Corpus2::Tagset>; %template(TagsetPtr) boost::shared_ptr<Corpus2::Tagset>;
%template(ConstTagsetPtr) boost::shared_ptr<const Corpus2::Tagset>; %template(ConstTagsetPtr) boost::shared_ptr<const Corpus2::Tagset>;
%feature("autodoc", "1");
namespace Corpus2 { namespace Corpus2 {
class Tagset; class Tagset;
class TagParseError : public Corpus2Error { class TagParseError : public Corpus2Error {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment