public String getGloss(Entity entity) throws LexicalSemanticResourceException { if (!this.containsEntity(entity)) { return null; } Page p = WikipediaArticleUtils.entityToPage(wiki, entity, isCaseSensitive); ParsedPage pp = p.getParsedPage(); if (pp == null) { return ""; } Paragraph paragraph = pp.getFirstParagraph(); if (paragraph == null) { return ""; } return paragraph.getText(); }
handleContent( pp.getFirstParagraph(), firstParagraphHandling, sb ); deleteParagraph( pp.getFirstParagraphNr(), pp.getSections() );
if(ppage.getFirstParagraph() == null) { continue; String text = ppage.getFirstParagraph().getText();