#ifndef _PHRASE_LOCATION_H_ #define _PHRASE_LOCATION_H_ #include #include using namespace std; namespace extractor { struct PhraseLocation { PhraseLocation(int sa_low = -1, int sa_high = -1); PhraseLocation(const vector& matchings, int num_subpatterns); bool IsEmpty() const; int GetSize() const; friend bool operator==(const PhraseLocation& a, const PhraseLocation& b); int sa_low, sa_high; shared_ptr > matchings; int num_subpatterns; }; } // namespace extractor #endif