Difference between revisions of "Talk:Apertium and Constraint Grammar"
Jump to navigation
Jump to search
Line 3: | Line 3: | ||
* Cohort = one |
* Cohort = one |
||
+ | ==Testing== |
||
− | Some notes: |
||
+ | |||
+ | Regression test status as of 15:46, 15 April 2008 (BST) |
||
<pre> |
<pre> |
||
+ | Running tests... |
||
− | cCohort = 0; |
||
+ | T_AnyMinusSome: Fail. |
||
− | cWindow = 0; |
||
+ | T_Barrier: Success. |
||
− | |||
+ | T_BasicAppend: Success. |
||
− | lCohort = 0; |
||
+ | T_BasicContextTest: Success. |
||
− | lWindow = 0; |
||
+ | T_BasicDelimit: Success. |
||
− | |||
+ | T_BasicIff: Success. |
||
− | while ((inchar == u_fgetc(input))) { |
||
+ | T_BasicRemove: Success. |
||
− | |||
+ | T_BasicSelect: Success. |
||
− | if(inchar == '^') { |
||
+ | T_BasicSubstitute: Success. |
||
− | |||
+ | T_CarefulBarrier: Fail. |
||
− | // check if the current limit of Cohorts to SingleWindow has been reached on this SingleWindow |
||
+ | T_CompositeSelect: Success. |
||
− | |||
+ | T_DontMatchEmptySet: Fail. |
||
− | if( |
||
+ | T_EndlessSelect: Fail. |
||
− | |||
+ | T_MapAdd_Different: Fail. |
||
− | // check if there is an existing SingleWindow |
||
+ | T_MatchBaseform: Success. |
||
− | |||
+ | T_MatchWordform: Success. |
||
− | if(!cSWindow) { |
||
+ | T_MultipleSections: Success. |
||
− | initialiseSingleWindow(); |
||
+ | T_NegatedContextTest: Success. |
||
− | } |
||
+ | T_RegExp_Map: Fail. |
||
− | |||
+ | T_RegExp_Select: Fail. |
||
− | // check for current Cohort |
||
+ | T_RemoveSingleTag: Fail. |
||
− | |||
+ | T_ScanningTests: Success. |
||
− | // read Cohort |
||
+ | T_Sections: Fail. |
||
− | |||
+ | T_SetOp_FailFast: Success. |
||
− | readCohort(input, cCohort); |
||
+ | T_SetOp_OR: Success. |
||
− | |||
+ | T_SuperBlanks: Success. |
||
− | // Up number of cohorts. |
||
+ | T_Unification: Fail. |
||
− | |||
+ | T_UnknownWord: Success. |
||
− | } |
||
− | |||
− | if(inchar == '[') { |
||
− | while(inchar != ']') { |
||
− | inchar = u_fgetc(input); |
||
− | |||
− | if(cCohort) { |
||
− | ux_append(cCohort->text, inchar); |
||
− | } else if(cWindow) { |
||
− | ux_append(cWindow->text, inchar); |
||
− | } |
||
− | } |
||
− | } |
||
− | } |
||
− | |||
− | |||
− | readCohort(UFILE *input, Cohort *cCohort) |
||
− | { |
||
− | |||
− | while((inchar == u_fgetc(input))) { |
||
− | if(inchar == '$') { |
||
− | return; |
||
− | } |
||
− | |||
− | |||
− | |||
− | } |
||
− | } |
||
− | |||
− | processReading(UFILE *input, Reading *cReading) |
||
− | { |
||
− | |||
− | } |
||
− | |||
− | |||
− | |||
</pre> |
</pre> |
Revision as of 14:46, 15 April 2008
- Window = whole of what we're looking at; several sentences at the same time.
- SingleWindow = one sentence (for want of a better term). Usually there's 3 SingleWindow in a Window, but that's runtime defined. Can be anywhere from 1 to hundreds set with --num-windows
- Cohort = one
Testing
Regression test status as of 15:46, 15 April 2008 (BST)
Running tests... T_AnyMinusSome: Fail. T_Barrier: Success. T_BasicAppend: Success. T_BasicContextTest: Success. T_BasicDelimit: Success. T_BasicIff: Success. T_BasicRemove: Success. T_BasicSelect: Success. T_BasicSubstitute: Success. T_CarefulBarrier: Fail. T_CompositeSelect: Success. T_DontMatchEmptySet: Fail. T_EndlessSelect: Fail. T_MapAdd_Different: Fail. T_MatchBaseform: Success. T_MatchWordform: Success. T_MultipleSections: Success. T_NegatedContextTest: Success. T_RegExp_Map: Fail. T_RegExp_Select: Fail. T_RemoveSingleTag: Fail. T_ScanningTests: Success. T_Sections: Fail. T_SetOp_FailFast: Success. T_SetOp_OR: Success. T_SuperBlanks: Success. T_Unification: Fail. T_UnknownWord: Success.