~ubuntu-branches/ubuntu/trusty/frog/trusty

« back to all changes in this revision

Viewing changes to include/frog/ner_tagger_mod.h

  • Committer: Package Import Robot
  • Author(s): Ko van der Sloot
  • Date: 2012-02-29 15:42:38 UTC
  • mfrom: (1.1.4)
  • Revision ID: package-import@ubuntu.com-20120229154238-b8pqxykqiiz1l6m4
Tags: 0.12.14-1
* New Upstream Release
* debian/control: removed dependency om libssl-dev
* debian/watch: upload from new location: http://software.ticc.uvt.nl

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
  $Id: ner_tagger_mod.h 14331 2012-02-23 16:56:49Z sloot $
 
3
  $URL: https://ilk.uvt.nl/svn/sources/Frog/trunk/include/frog/ner_tagger_mod.h $
 
4
 
 
5
  Copyright (c) 2006 - 2012
 
6
  Tilburg University
 
7
 
 
8
  This file is part of frog.
 
9
 
 
10
  frog is free software; you can redistribute it and/or modify
 
11
  it under the terms of the GNU General Public License as published by
 
12
  the Free Software Foundation; either version 3 of the License, or
 
13
  (at your option) any later version.
 
14
 
 
15
  frog is distributed in the hope that it will be useful,
 
16
  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
17
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
 
18
  GNU General Public License for more details.
 
19
 
 
20
  You should have received a copy of the GNU General Public License
 
21
  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
22
  
 
23
  For questions and suggestions, see:
 
24
      http://ilk.uvt.nl/software.html
 
25
  or send mail to:
 
26
      timbl@uvt.nl
 
27
*/
 
28
 
 
29
#ifndef NER_TAGGER_MOD_H
 
30
#define NER_TAGGER_MOD_H
 
31
 
 
32
class Configuration;
 
33
 
 
34
class NERTagger {
 
35
 public:
 
36
  NERTagger();
 
37
  ~NERTagger();
 
38
  bool init( const Configuration& );
 
39
  std::string Classify( folia::Sentence * );
 
40
  void addNERTags( folia::Sentence *, 
 
41
                   const std::vector<folia::Word*>&,
 
42
                   const std::vector<std::string>&,
 
43
                   const std::vector<double>& );
 
44
 private:
 
45
  bool splitOneWT( const std::string&, 
 
46
                   std::string& word, std::string& tag,
 
47
                   std::string& confidence );
 
48
  int splitWT( const std::string&,
 
49
               std::vector<std::string>&,
 
50
               std::vector<double>& );
 
51
  MbtAPI *tagger;
 
52
  LogStream *nerLog;
 
53
  int debug;
 
54
};
 
55
 
 
56
#endif // NER_TAGGER_MOD_H