Modifier and Type | Method and Description |
---|---|
KAFDocument |
Corpus.get(Object key) |
Modifier and Type | Method and Description |
---|---|
Iterator<KAFDocument> |
Corpus.iterator() |
Stream<KAFDocument> |
Corpus.parallelStream() |
Spliterator<KAFDocument> |
Corpus.spliterator() |
Stream<KAFDocument> |
Corpus.stream() |
Modifier and Type | Method and Description |
---|---|
OpinionPrecisionRecall.Evaluator |
OpinionPrecisionRecall.Evaluator.add(KAFDocument document,
String goldLabel,
String testLabel) |
static void |
NafRenderUtils.renderParsing(Appendable out,
KAFDocument document,
int sentence,
boolean emitDependencies,
boolean emitSRL,
Iterable<NafRenderUtils.Markable> markables) |
static void |
NafRenderUtils.renderText(Appendable out,
KAFDocument document,
Iterable<Term> terms,
Iterable<NafRenderUtils.Markable> markables) |
Modifier and Type | Method and Description |
---|---|
OpinionPrecisionRecall.Evaluator |
OpinionPrecisionRecall.Evaluator.add(Iterable<KAFDocument> documents,
String goldLabel,
String testLabel) |
Corpus |
Corpus.transform(BiConsumer<Path,KAFDocument> transformer) |
Corpus |
Corpus.transform(Consumer<KAFDocument> transformer) |
Modifier and Type | Method and Description |
---|---|
Analyzer |
Analyzer.add(KAFDocument document) |
Trainer<T> |
Trainer.add(KAFDocument document,
Iterable<String> goldLabels) |
static List<Opinion> |
Opinions.create(KAFDocument document,
Span<Term> expression,
Iterable<Span<Term>> holders,
Iterable<Span<Term>> targets,
Opinion.Polarity polarity) |
static boolean |
Opinions.deduplicate(KAFDocument document,
Iterable<Opinion> opinions) |
protected abstract void |
Trainer.doAdd(KAFDocument document,
int sentence,
Opinion[] opinions) |
protected abstract Iterable<Opinion> |
Extractor.doExtract(KAFDocument document,
int sentenceID,
EnumSet<Component> components) |
protected void |
Trainer.doFilter(KAFDocument document) |
protected void |
Extractor.doFilter(KAFDocument document) |
protected abstract Iterable<Opinion> |
Extractor.doRefine(KAFDocument document,
int sentenceID,
EnumSet<Component> components,
Opinion opinion) |
void |
Extractor.extract(KAFDocument document,
String outLabel,
Component... components) |
static ArrayList<ArrayList<LinkedHashMap<String,String>>> |
CreateTrainingForExpression.extractFeats(KAFDocument document,
String[] labels,
Set<String> hypernyms,
boolean skipEmpty) |
static Set<Term> |
Opinions.heads(KAFDocument document,
Span<Term> span,
Component component) |
static List<Opinion> |
Opinions.merge(KAFDocument document,
Iterable<Opinion> opinions,
Iterable<Component> components) |
void |
Extractor.refine(KAFDocument document,
Iterable<String> inLabels,
String outLabel,
Component... components) |
static List<Opinion> |
Opinions.split(KAFDocument document,
Iterable<Opinion> opinions,
Iterable<Component> components) |
static List<Opinion> |
Opinions.split(KAFDocument document,
Iterable<Opinion> inOpinions,
String outLabel)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Analyzer |
Analyzer.add(Iterable<KAFDocument> documents) |
Trainer<T> |
Trainer.add(Iterable<KAFDocument> documents,
Iterable<String> goldLabels) |
void |
Extractor.extract(Iterable<KAFDocument> documents,
String outLabel,
Component... components) |
void |
Extractor.refine(Iterable<KAFDocument> documents,
Iterable<String> inLabels,
String outLabel,
Component... components) |
Modifier and Type | Method and Description |
---|---|
void |
LinkLabeller.Trainer.add(KAFDocument document,
Term root,
Iterable<Term> selected) |
void |
SpanLabeller.Trainer.add(KAFDocument document,
Term head,
Iterable<Term> excluded,
Span<Term> span) |
protected void |
PipelineTrainer.doAdd(KAFDocument document,
int sentence,
Opinion[] opinions) |
protected Iterable<Opinion> |
PipelineExtractor.doExtract(KAFDocument document,
int sentence,
EnumSet<Component> components) |
protected void |
PipelineExtractor.doFilter(KAFDocument document) |
protected void |
PipelineTrainer.doFilter(KAFDocument document) |
protected Iterable<Opinion> |
PipelineExtractor.doRefine(KAFDocument document,
int sentence,
EnumSet<Component> components,
Opinion opinion) |
Span<Term> |
SpanLabeller.expand(KAFDocument document,
Iterable<Term> heads,
Iterable<Term> excludedTerms,
boolean merge) |
Span<Term> |
SpanLabeller.expand(KAFDocument document,
Term head,
Iterable<Term> excludedTerms) |
Map<Term,Float> |
LinkLabeller.label(KAFDocument document,
Term root) |
Modifier and Type | Method and Description |
---|---|
protected void |
SBRSTrainer.doAdd(KAFDocument document,
int sentence,
Opinion[] opinions) |
protected Iterable<Opinion> |
SBRSExtractor.doExtract(KAFDocument document,
int sentenceID,
EnumSet<Component> components) |
protected Iterable<Opinion> |
SBRSExtractor.doRefine(KAFDocument document,
int sentenceID,
EnumSet<Component> components,
Opinion opinion) |
Modifier and Type | Method and Description |
---|---|
org.eclipse.rdf4j.model.Model |
RDFGenerator.generate(KAFDocument document,
Iterable<Integer> sentenceIDs) |
void |
RDFGenerator.generate(KAFDocument document,
Iterable<Integer> sentenceIDs,
Collection<? super org.eclipse.rdf4j.model.Statement> output) |
void |
RDFGenerator.generate(KAFDocument document,
Iterable<Integer> sentenceIDs,
org.eclipse.rdf4j.rio.RDFHandler handler) |
void |
Renderer.renderAll(Appendable out,
KAFDocument document,
org.eclipse.rdf4j.model.Model model,
Object template,
Map<String,?> templateParameters) |
void |
Renderer.renderParsing(Appendable out,
KAFDocument document,
org.eclipse.rdf4j.model.Model model,
int sentence) |
void |
Renderer.renderText(Appendable out,
KAFDocument document,
Iterable<Term> terms,
org.eclipse.rdf4j.model.Model model) |
Modifier and Type | Method and Description |
---|---|
static KAFDocument |
NAFUtils.readDocument(Path path) |
Modifier and Type | Method and Description |
---|---|
void |
NAFFilter.accept(KAFDocument document) |
static String |
NAFUtils.extendedPos(KAFDocument document,
Term term) |
static Term |
NAFUtils.extractHead(KAFDocument document,
Span<Term> span) |
static Set<Term> |
NAFUtils.extractHeads(KAFDocument document,
Iterable<Term> ancestors,
Iterable<Term> span,
Predicate<Term> predicate) |
void |
NAFFilter.filter(KAFDocument document)
Filters the NAF document specified (the document is modified in-place).
|
static Span<Term> |
NAFUtils.getNominalSpan(KAFDocument document,
Term term,
boolean includeCoord,
boolean includeModifiers) |
static Set<Term> |
NAFUtils.getTermsByDepAncestor(KAFDocument document,
Term head,
boolean consecutive) |
static boolean |
NAFUtils.hasHead(KAFDocument document,
Object annotation,
Term head) |
static Boolean |
NAFUtils.isActiveForm(KAFDocument document,
Term term) |
com.google.common.collect.Multimap<Term,T> |
Lexicon.match(KAFDocument document,
Iterable<Term> terms) |
boolean |
Lexicon.Lexeme.match(KAFDocument document,
Iterable<Term> terms,
Term head) |
Set<T> |
Lexicon.match(KAFDocument document,
Term term) |
static Predicate<Term> |
NAFUtils.matchExtendedPos(KAFDocument document,
String... posPrefixes) |
static List<Span<Term>> |
NAFUtils.mergeSpans(KAFDocument document,
Iterable<Span<Term>> spans,
boolean canAddTerms) |
static void |
NAFUtils.normalize(KAFDocument document) |
static Span<Term> |
NAFUtils.normalizeSpan(KAFDocument document,
Span<Term> span) |
static List<eu.fbk.utils.core.Range> |
NAFUtils.rangesFor(KAFDocument document,
Iterable<Term> terms) |
static List<Span<Term>> |
NAFUtils.splitSpan(KAFDocument document,
Span<Term> span,
Iterable<Term> heads) |
static List<Span<Term>> |
NAFUtils.splitSpans(KAFDocument document,
Iterable<Span<Term>> spans) |
static Term |
NAFUtils.srlToSyntacticHead(KAFDocument document,
Term term) |
static Term |
NAFUtils.syntacticToSRLHead(KAFDocument document,
Term term) |
static List<eu.fbk.utils.core.Range> |
NAFUtils.termRangesFor(KAFDocument document,
Iterable<Term> terms) |
static void |
NAFUtils.writeDocument(KAFDocument document,
Path location) |
Modifier and Type | Method and Description |
---|---|
static KAFDocument |
CorpusPreprocessor.text2naf(String text) |
Modifier and Type | Method and Description |
---|---|
KAFDocument |
AnnotationPipeline.parseFromNAF(KAFDocument NAFdocument) |
KAFDocument |
AnnotationPipeline.parseFromString(String textInNafFormat) |
Modifier and Type | Method and Description |
---|---|
void |
AnnotationPipeline.annotateStanford(Properties properties,
edu.stanford.nlp.pipeline.Annotation document,
KAFDocument NAFdocument) |
KAFDocument |
AnnotationPipeline.parseFromNAF(KAFDocument NAFdocument) |
Modifier and Type | Method and Description |
---|---|
static KAFDocument |
AbstractHandler.text2naf(String text,
HashMap<String,String> meta) |
Modifier and Type | Method and Description |
---|---|
static KAFDocument |
KAFDocument.createFromFile(File file)
Creates a new KAFDocument and loads the contents of the file passed as argument
|
static KAFDocument |
KAFDocument.createFromStream(Reader stream)
Creates a new KAFDocument loading the content read from the reader given on argument.
|
KAFDocument |
KAFDocument.split(List<WF> wfs)
Returns a new document containing all annotations related to the given WFs
|
Modifier and Type | Method and Description |
---|---|
static Dep.Path |
Dep.Path.create(Term from,
Term to,
KAFDocument document) |
void |
KAFDocument.join(KAFDocument doc)
Joins the document with another one.
|
Copyright © 2016–2020 FBK. All rights reserved.