- Apr 19, 2011
-
-
Adam Wardynski authored
MatchVector, AnnotationMatch, TokenMatch are now MatchData MatchData is value_type of Match which now has get_value/set_value Match has also copy construction working properly now Default value for Match holds MatchVector so adding $m:_M var in grammar works as intended.
-
- Mar 11, 2011
-
-
Adam Wardynski authored
-
- Mar 09, 2011
- Mar 03, 2011
-
-
ilor authored
First draft of Match value type with some tests. MatchVector does not yet properly implement first/last token, hence a test fails, and AnnotationMatch is pretty much a stub.
-
- Feb 09, 2011
- Dec 10, 2010
-
-
Adam Wardynski authored
It is coherent now with the SentenceContext::is_inside(int abs_pos) - SentenceContext::is_inside(Position pos) is added, while Position::is_inside(SentenceContext) is removed
-
- Dec 09, 2010
-
-
Adam Wardynski authored
-
Adam Wardynski authored
-
- Dec 08, 2010
- Nov 30, 2010
-
-
ilor authored
Add the tagset-symbol-getter operator (GetSymbols), bump required Corpus2 version to 1.0.2 since new features are needed.
-
Adam Wardynski authored
It is more intuitive that way, e.g. equal(2,3) is never true, equal(3,3) is always true. Nowhere is only equal to Nowhere, and Begin or End are equal to nonspecial positions depending on current position in the sentence context.
-
- Nov 29, 2010
-
-
ilor authored
-
ilor authored
* reset_values function to set all Values to their defaul-construct state * read-only access to all variables of some type via get_all<T> * Variables cloning * convenience functions: get_or_throw, get_value Value subtypes now contain a value_type typedef and require a const value_type& get_value() const member function.
-
ilor authored
-
ilor authored
-
- Nov 24, 2010
-
-
ilor authored
-
- Nov 20, 2010
-
-
Adam Wardynski authored
-
Adam Wardynski authored
My relative position tests wouldn't compile in GCC where I used Position::Nowhere for comparison. Apparently according to standard TC1, section 9.4.2, paragraph 4, if you want to use integral static const in a program, you still have to define it even if there's initializer in the declaration.
-
- Nov 19, 2010
-
-
Adam Wardynski authored
-
Adam Wardynski authored
Checks wether Position is_inside, is_outside, or equals to other Position given the SentenceContext.
-
Adam Wardynski authored
-
- Nov 18, 2010
-
-
Adam Wardynski authored
-
- Nov 17, 2010
-
-
Adam Wardynski authored
The function returns string representation of a variable of given Value type, using provided variable name.
-
- Nov 16, 2010
-
-
Adam Wardynski authored
-
- Nov 15, 2010
-
-
ilor authored
Change StrSet::is_subset_of to correctly handle empty sets, add some comments Add Tset::insert_symbol Add tests for new functions Bump required corpus2 version to 0.1.2 due to a fixed bug there
-
- Nov 09, 2010
-
-
Adam Wardyński authored
-
Adam Wardyński authored
-
- Nov 08, 2010
-
-
Adam Wardyński authored
Fixing expected interface of sets i.e. bool intersects function, not a function returning actual intersection
-
Adam Wardyński authored
Adding some methods to values for use by operators, e.g. equals and is_subset_of/intersection. Some are just stubs.
-
- Nov 04, 2010
- Nov 03, 2010