Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

BU.h

Go to the documentation of this file.
00001 // BU.h: BU corpus loader class definition
00002 // Haejoong Lee, Xiaoyi Ma, Steven Bird
00003 // Copyright (C) 2001 Linguistic Data Consortium, U Penn.
00004 // Web: http://www.ldc.upenn.edu/; Email: ldc@ldc.upenn.edu
00005 // For license information, see the file `LICENSE' included
00006 // with the distribution.
00007 
00008 
00009 #ifndef _BU_H_
00010 #define _BU_H_
00011 
00012 #include <AGAPI.h>
00013 #include "agfio.h"
00014 #include "Paired.h"
00015 
00016 
00018 
00024 class DllExport BU: public agfio
00025 {
00026 
00027 private:
00028 
00029   enum { LBA=0, LBL, WRD, BRK, POS, TON, MSC };
00030   bool exist[MSC+1];  // indicate if each annotation file exists
00031   bool lbl_option;    // based on .lbl or .lba ?
00032   
00033   // Check existence of each file.
00034   void
00035   check_files(const string& prefix);
00036 
00037   // Process .wrd, .brk, .pos files to add annotations.
00038   void
00039   build_wbp(Paired& wrd, Paired& brk, Paired& pos, const AGId& agId);
00040 
00041   virtual bool
00042   is_id_required()
00043   { return true; }
00044 
00045   virtual AGIds
00046   load();
00047 
00048 
00049 public:
00050 
00051   BU();
00052 
00053 
00054 };
00055 
00056 #endif

Generated at Wed Jul 3 14:54:02 2002 for Annotation Graph API by doxygen1.2.7 written by Dimitri van Heesch, © 1997-2001