&&(!UtilClass.isANoun(nodes.getLast().getSyntacticInfo().getPartOfSpeech()))) PartOfSpeech firstpos = nodes.getFirst().getSyntacticInfo().getPartOfSpeech(); while ((nodes.size() > 0) && (!( (UtilClass.isANoun(firstpos)) firstpos = nodes.getFirst().getSyntacticInfo().getPartOfSpeech();
&&(!UtilClass.isANoun(nodes.getLast().getSyntacticInfo().getPartOfSpeech()))) PartOfSpeech firstpos = nodes.getFirst().getSyntacticInfo().getPartOfSpeech(); while ((nodes.size() > 0) && (!( (UtilClass.isANoun(firstpos)) firstpos = nodes.getFirst().getSyntacticInfo().getPartOfSpeech();
pos = node.getInfo().getNodeInfo().getSyntacticInfo().getPartOfSpeech().getStringRepresentation(); sbPos.append(pos); sbWords.append(word);
protected boolean relevantNode(BasicNode node) { return node != null && node.getInfo().getNodeInfo().getSyntacticInfo().getPartOfSpeech() != null && posFilter.isRelevant(node.getInfo().getNodeInfo().getSyntacticInfo().getPartOfSpeech().getCanonicalPosTag()); }
pos = node.getInfo().getNodeInfo().getSyntacticInfo().getPartOfSpeech().getStringRepresentation();
if (UtilClass.isANoun(current_tree.getInfo().getNodeInfo().getSyntacticInfo().getPartOfSpeech()))
if (UtilClass.isANoun(current_tree.getInfo().getNodeInfo().getSyntacticInfo().getPartOfSpeech()))
currentPOS= child.getInfo().getNodeInfo().getSyntacticInfo().getPartOfSpeech();
currentPOS= child.getInfo().getNodeInfo().getSyntacticInfo().getPartOfSpeech();
BasicNode parentNode = entry.getValue(); if (relevantNode(childNode) && relevantNode(parentNode)) { LemmaPosTextUnit child = new LemmaPosTextUnit(childNode.getInfo().getNodeInfo().getWordLemma(),childNode.getInfo().getNodeInfo().getSyntacticInfo().getPartOfSpeech().getCanonicalPosTag()); LemmaPosTextUnit parent = new LemmaPosTextUnit(parentNode.getInfo().getNodeInfo().getWordLemma(),parentNode.getInfo().getNodeInfo().getSyntacticInfo().getPartOfSpeech().getCanonicalPosTag());
PartOfSpeech word_pos = current_tree.getInfo().getNodeInfo().getSyntacticInfo().getPartOfSpeech();
PartOfSpeech word_pos = current_tree.getInfo().getNodeInfo().getSyntacticInfo().getPartOfSpeech();
/** * If rhsInfo has a POS (not {@link WildcardPartOfSpeech}), copy it to treeInfo. Return treeInfo * @param treeInfo * @param rhsInfo * @return */ public static NodeInfo combineNodeInfo(Info treeInfo, Info rhsInfo) { NodeInfo treeNodeInfo = treeInfo.getNodeInfo(); if (rhsInfo != null && rhsInfo.getNodeInfo() != null && rhsInfo.getNodeInfo().getSyntacticInfo() != null && rhsInfo.getNodeInfo().getSyntacticInfo().getPartOfSpeech() != null && !WildcardPartOfSpeech.isWildCardPOS(rhsInfo.getNodeInfo().getSyntacticInfo().getPartOfSpeech())) { // treeInfo with rhsInfo's syntactic info return new DefaultNodeInfo(treeNodeInfo.getWord(), treeNodeInfo.getWordLemma(), treeNodeInfo.getSerial(), treeNodeInfo.getNamedEntityAnnotation(), rhsInfo.getNodeInfo().getSyntacticInfo()); } else return treeNodeInfo; } }