Closed leungmanhin closed 1 year ago
HI, I'm getting these errors after running ant:
ant
compile: [mkdir] Created dir: /home/manhin/workspace/sigmanlp/build/classes [javac] /home/manhin/workspace/sigmanlp/build.xml:51: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds [javac] Compiling 183 source files to /home/manhin/workspace/sigmanlp/build/classes [javac] /home/manhin/workspace/sigmanlp/src/main/java/com/articulate/nlp/DependencyConverter.java:17: warning: [deprecation] CollapsedCCProcessedDependenciesAnnotation in SemanticGraphCoreAnnotations has been deprecated [javac] import edu.stanford.nlp.semgraph.SemanticGraphCoreAnnotations.CollapsedCCProcessedDependenciesAnnotation; [javac] ^ [javac] /home/manhin/workspace/sigmanlp/src/main/java/com/articulate/nlp/semRewrite/datesandnumber/StanfordDateTimeExtractor.java:32: warning: [deprecation] CollapsedDependenciesAnnotation in SemanticGraphCoreAnnotations has been deprecated [javac] import edu.stanford.nlp.semgraph.SemanticGraphCoreAnnotations.CollapsedDependenciesAnnotation; [javac] ^ [javac] /home/manhin/workspace/sigmanlp/src/main/java/com/articulate/nlp/DependencyConverter.java:653: warning: [deprecation] CollapsedCCProcessedDependenciesAnnotation in SemanticGraphCoreAnnotations has been deprecated [javac] SemanticGraph dependencies = sentence.get(CollapsedCCProcessedDependenciesAnnotation.class); [javac] ^ [javac] /home/manhin/workspace/sigmanlp/src/main/java/com/articulate/nlp/GenSimpTestData.java:245: error: incompatible types: Set<String> cannot be converted to HashSet<String> [javac] HashSet<String> children = kb.kbCache.getChildClasses(bareClass); [javac] ^ [javac] /home/manhin/workspace/sigmanlp/src/main/java/com/articulate/nlp/GenSimpTestData.java:502: error: incompatible types: List<String> cannot be converted to ArrayList<String> [javac] ArrayList<String> sig = kb.kbCache.getSignature(rel); [javac] ^ [javac] /home/manhin/workspace/sigmanlp/src/main/java/com/articulate/nlp/GenSimpTestData.java:2396: error: incompatible types: Set<String> cannot be converted to HashSet<String> [javac] HashSet<String> childClasses = kb.kbCache.getChildClasses(c.proc); [javac] ^ [javac] /home/manhin/workspace/sigmanlp/src/main/java/com/articulate/nlp/LFeatures.java:91: error: incompatible types: Set<String> cannot be converted to HashSet<String> [javac] HashSet<String> artClass = GenSimpTestData.kb.kbCache.getChildClasses("Artifact"); [javac] ^ [javac] /home/manhin/workspace/sigmanlp/src/main/java/com/articulate/nlp/LFeatures.java:102: error: incompatible types: Set<String> cannot be converted to HashSet<String> [javac] HashSet<String> orgClass = GenSimpTestData.kb.kbCache.getChildClasses("OrganicObject"); [javac] ^ [javac] /home/manhin/workspace/sigmanlp/src/main/java/com/articulate/nlp/RelExtract.java:160: error: incompatible types: List<String> cannot be converted to ArrayList<String> [javac] ArrayList<String> sig = kb.kbCache.signatures.get(rel); [javac] ^ [javac] /home/manhin/workspace/sigmanlp/src/main/java/com/articulate/nlp/semRewrite/datesandnumber/StanfordDateTimeExtractor.java:104: warning: [deprecation] CollapsedDependenciesAnnotation in SemanticGraphCoreAnnotations has been deprecated [javac] dependencies = (sentence.get(CollapsedDependenciesAnnotation.class)); [javac] ^ [javac] /home/manhin/workspace/sigmanlp/src/main/java/com/articulate/nlp/pipeline/SentenceUtil.java:95: warning: [deprecation] CollapsedCCProcessedDependenciesAnnotation in SemanticGraphCoreAnnotations has been deprecated [javac] SemanticGraph dependencies = sentence.get(CollapsedCCProcessedDependenciesAnnotation.class); [javac] ^ [javac] /home/manhin/workspace/sigmanlp/src/main/java/com/articulate/nlp/pipeline/SentenceUtil.java:331: warning: [deprecation] CollapsedCCProcessedDependenciesAnnotation in SemanticGraphCoreAnnotations has been deprecated [javac] SemanticGraph dependencies = sentence.get(CollapsedCCProcessedDependenciesAnnotation.class); [javac] ^ [javac] /home/manhin/workspace/sigmanlp/src/main/java/com/articulate/nlp/pipeline/SentenceUtil.java:377: warning: [deprecation] CollapsedCCProcessedDependenciesAnnotation in SemanticGraphCoreAnnotations has been deprecated [javac] SemanticGraph dependencies = sentence.get(CollapsedCCProcessedDependenciesAnnotation.class); [javac] ^ [javac] /home/manhin/workspace/sigmanlp/src/test/unit/java/com/articulate/nlp/semRewrite/SemRewriteToFormulaTest.java:48: warning: [deprecation] logicallyEquals(String) in Formula has been deprecated [javac] assertTrue(actualFormula.logicallyEquals(expectedOutput)); [javac] ^ [javac] Note: Some input files use unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. [javac] 6 errors [javac] 8 warnings BUILD FAILED /home/manhin/workspace/sigmanlp/build.xml:51: Compile failed; see the compiler error output for details.
I get the same. I'll investigate...
I've pushed a fix. Please let me know if you can compile now
Oh yes it's working now, thank you very much!
HI, I'm getting these errors after running
ant
: