![]() Stanford parser was applied before the coreference resolver.Ĭaused by: : No head rule defined for PCONJP using class .SemanticHeadFinder in (PCONJP (IN above)Īt .termineNonTrivialHead(AbstractCollinsHeadFinder.java:242)Īt .termineNonTrivialHead(SemanticHeadFinder.java:437)Īt .termineHead(AbstractCollinsHeadFinder.java:189)Īt .TreeGraphNode.percolateHeads(TreeGraphNode.java:315)Īt .TreeGraphNode.percolateHeads(TreeGraphNode.java:313)Īt .GrammaticalStructure.(GrammaticalStructure.java:183)Īt .UniversalEnglishGrammaticalStructure.(UniversalEnglishGrammaticalStructure.java:92)Īt .UniversalEnglishGrammaticalStructure.(UniversalEnglishGrammaticalStructure.java:71)Īt .UniversalEnglishGrammaticalStructureFactory.newGrammaticalStructure(UniversalEnglishGrammaticalStructureFactory.java:29)Īt .UniversalEnglishGrammaticalStructureFactory.newGrammaticalStructure(UniversalEnglishGrammaticalStructureFactory.java:5)Īt .ParserAnnotatorUtils.fillInParseAnnotations(ParserAnnotatorUtils.java:51)Īt de.(StanfordCoreferenceResolver.java:280)Īt _component.JCasAnnotator_ImplBase.process(JCasAnnotator_ImplBase.java:48)Īt _impl.callAnalysisComponentProcess(PrimitiveAnalysisEngine_impl. This could potentially be any sense of head, but has mainly been used to find the. returns the maximal projection of head in root. An interface for finding the head daughter of a phrase structure tree. However, I cannot say whether this is a DKPro or Stanford CoreNLP related issue or some wrong use from my side. static void, main( args) static Tree maximalProjection(Tree head, Tree root, HeadFinder hf). Parameters: t - The tree to display printTree public void printTree ( Tree t, java.io.PrintWriter pw) Prints the tree, with an empty ID. Friday, May 19, 2023: 2:00 pm - 6:00 pm PT Saturday, May 20, 2023: 9:30 am - 5:00 pm PT Reception to follow for each day. hf - The HeadFinder used in printing output Method Detail printTree public void printTree ( Tree t) Prints the tree to the default PrintWriter. ![]() Seems the offending PCONJP relation is part of the UniversalEnglishGrammaticalRelations, and after investigating the problem it is my impression that it has something to do with the GrammaticalStructureFactory being initialised with PennTreebankLanguagePack, which returns a SemanticHeadFinder instead of a UniversalSemanticHeadFinder. HeadFinder that always returns the leftmost daughter as head. Please join us at this 2-day Medical Humanities conference that will take place on May 19-20, 2023. Create a TregexPattern from this tregex string using the headFinder and basicCat function this. I am testing the StanfordCoreferenceResolver with our data using the 1.8.0-SNAPSHOT but I am getting IllegalArgumentException errors (see trace further down).
0 Comments
Leave a Reply. |