Skip to content
Snippets Groups Projects
Select Git revision
  • 923c30f0d6c9e6c0de692b9641b8eb3c2d957d6e
  • master default protected
  • develop protected
  • develop-0.7.x
  • develop-0.8.0
  • dev_czuk
  • loader
  • kgr10_roberta
  • 14-BiLSTM-CRF-RoBERTa
  • 12-handle-long-sequences
  • 13-flair-embeddings
  • BiLSTM
  • v0.7.0
  • v0.6.1
  • v0.5
  • v0.4.1
  • v0.3
17 results

kpwr_n82_large_details.md

Blame
  • orthwriter.h 1.09 KiB
    /*
        Copyright (C) 2010 Tomasz Śniatowski, Adam Radziszewski
        Part of the libcorpus2 project
    
        This program is free software; you can redistribute it and/or modify it
    under the terms of the GNU General Public License as published by the Free
    Software Foundation; either version 3 of the License, or (at your option)
    any later version.
    
        This program is distributed in the hope that it will be useful, but
    WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
    or FITNESS FOR A PARTICULAR PURPOSE. 
    
        See the LICENSE and COPYING files for more details.
    */
    
    #ifndef LIBCORPUS2_IO_ORTHWRITER_H
    #define LIBCORPUS2_IO_ORTHWRITER_H
    
    #include <libcorpus2/io/writer.h>
    
    namespace Corpus2 {
    
    class OrthWriter : public TokenWriter {
    public:
    	OrthWriter(std::ostream& os, const Tagset& tagset,
    			const string_range_vector& params);
    
    	~OrthWriter();
    
    	void write_token(const Token &t);
    
    	void write_sentence(const Sentence &s);
    
    	void write_chunk(const Chunk &c);
    
    	bool actual_ws_;
    
    	bool end_nl_;
    
    	static bool registered;
    
    };
    
    } /* end ns Corpus2 */
    
    #endif // LIBCORPUS2_IO_ORTHWRITER_H