File: remove-ngrambuilder-tests.patch

package info (click to toggle)
oscar4 5.3.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 30,996 kB
  • sloc: xml: 567,330; java: 17,951; makefile: 6
file content (38 lines) | stat: -rw-r--r-- 1,522 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
Description: Deserialisation tests for NGramBuilderTest fail due to
 nonexistent files.
Author: Andrius Merkys <merkys@debian.org>
Forwarded: not-needed
--- a/oscar4-recogniser-core/src/test/java/uk/ac/cam/ch/wwmm/oscarrecogniser/tokenanalysis/NGramBuilderTest.java
+++ b/oscar4-recogniser-core/src/test/java/uk/ac/cam/ch/wwmm/oscarrecogniser/tokenanalysis/NGramBuilderTest.java
@@ -12,6 +12,7 @@
 
 import org.junit.AfterClass;
 import org.junit.BeforeClass;
+import org.junit.Ignore;
 import org.junit.Test;
 
 import uk.ac.cam.ch.wwmm.oscar.chemnamedict.core.ChemNameDictRegistry;
@@ -125,6 +126,7 @@
 	 * check that the serialised vanilla model can be read and is consistent
 	 * with the current training data
 	 */
+	@Ignore
 	@Test
 	public void testDeserialiseVanillaModel() throws IOException {
 		NGramBuilder builder = new NGramBuilder();
@@ -149,6 +151,7 @@
 	 * check that the serialised chempapers model can be read and is consistent
 	 * with the current training data
 	 */
+	@Ignore
 	@Test
 	public void testDeserialiseChempapersModel() throws IOException {
 		ExtractedTrainingData annotations = ExtractedTrainingData.loadExtractedTrainingData("chempapers");
@@ -173,6 +176,7 @@
 	 * check that the serialised pubmed model can be read and is consistent
 	 * with the current training data
 	 */
+	@Ignore
 	@Test
 	public void testDeserialisePubmedModel() throws IOException {
 		ExtractedTrainingData annotations = ExtractedTrainingData.loadExtractedTrainingData("pubmed");