Commit 825a674a authored by alain_desilets's avatar alain_desilets

- Added a SentenceAlignments class.

parent a6eaa861
......@@ -1383,6 +1383,7 @@ lib/core/lib/DeclFilter/UnsetRule.php -text
lib/core/lib/JitFilter.php -text
lib/core/lib/JitFilter/Element.php -text
lib/core/lib/Multilingual/Aligner/BilingualAligner.php -text
lib/core/lib/Multilingual/Aligner/SentenceAlignments.php -text
lib/core/lib/Multilingual/Aligner/SentenceSegmentor.php -text
lib/core/lib/Multilingual/Aligner/ShortestPathFinder.php -text
lib/core/lib/Multilingual/MachineTranslation/GoogleTranslateWrapper.php -text
......@@ -2476,6 +2477,7 @@ lib/test/core/JitFilter/FilterTest.php -text
lib/test/core/JitFilter/IteratorTest.php -text
lib/test/core/Multilingual/Aligner/AllTests.php -text
lib/test/core/Multilingual/Aligner/BilingualAlignerTest.php -text
lib/test/core/Multilingual/Aligner/SentenceAlignmentsTest.php -text
lib/test/core/Multilingual/Aligner/SentenceSegmentorTest.php -text
lib/test/core/Multilingual/Aligner/ShortestPathFinderTest.php -text
lib/test/core/Multilingual/AllTests.php -text
......
<?php
/*
* Class used to store aligned bilingual sentences for two different
* linguistic versions of a same document. For example, English
* sentences with their corresponding French sentences.
*/
class Multilingual_Aligner_SentenceAlignments {
}
......@@ -6,7 +6,7 @@ class Multilingual_Aligner_AllTests {
$suite->addTestSuite('Multilingual_Aligner_BilingualAlignerTest');
$suite->addTestSuite('Multilingual_Aligner_SentenceSegmentorTest');
$suite->addTestSuite('Multilingual_Aligner_ShortestPathFinderTest');
$suite->addTestSuite('Multilingual_Aligner_SentenceAlignmentsTest');
return $suite;
}
}
......
<?php
class Multilingual_Aligner_SentenceAlignmentsTest extends TikiTestCase
{
public function ___test_reminder() {
$this->fail("remember to reactivate all tests in SentenceAlignments");
}
public function test_nevermind() {
$this->fail("this test is just to verify that we are indeed executing tests from SentencedAlignmetTest");
}
////////////////////////////////////////////////////////////////
// Documentation tests
// These tests illustrate how to use this class.
////////////////////////////////////////////////////////////////
public function test_this_is_how_you_create_a_SentenceAlignments() {
$aligner = new Multilingual_Aligner_SentenceAlignments();
}
////////////////////////////////////////////////////////////////
// Note: In the rest of these tests, you can assume that
// $this->alignments is an instance of SentenceAlignments
// created as above.
////////////////////////////////////////////////////////////////
protected function setUp() {
$this->alignments = new Multilingual_Aligner_SentenceAlignments();
}
////////////////////////////////////////////////////////////////
// Internal tests
// These tests check the internal workings of the class.
////////////////////////////////////////////////////////////////
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment