diff options
| author | Paul Baltescu <pauldb89@gmail.com> | 2013-01-28 11:56:31 +0000 | 
|---|---|---|
| committer | Paul Baltescu <pauldb89@gmail.com> | 2013-01-28 11:56:31 +0000 | 
| commit | 4ab84a0be28fdb6c0c421fe5ba5e09cfa298f2d1 (patch) | |
| tree | 61a9790298659944650e16121c28dc04397b07ba /extractor/phrase_location.h | |
| parent | ae1bd3257aafba586f874c55e7e51e8776879434 (diff) | |
Initial working commit.
Diffstat (limited to 'extractor/phrase_location.h')
| -rw-r--r-- | extractor/phrase_location.h | 23 | 
1 files changed, 23 insertions, 0 deletions
| diff --git a/extractor/phrase_location.h b/extractor/phrase_location.h new file mode 100644 index 00000000..96004b33 --- /dev/null +++ b/extractor/phrase_location.h @@ -0,0 +1,23 @@ +#ifndef _PHRASE_LOCATION_H_ +#define _PHRASE_LOCATION_H_ + +#include <memory> +#include <vector> + +using namespace std; + +struct PhraseLocation { +  PhraseLocation(int sa_low = -1, int sa_high = -1); + +  PhraseLocation(shared_ptr<vector<int> > matchings, int num_subpatterns); + +  bool IsEmpty(); + +  friend bool operator==(const PhraseLocation& a, const PhraseLocation& b); + +  int sa_low, sa_high; +  shared_ptr<vector<int> > matchings; +  int num_subpatterns; +}; + +#endif | 
