public final class SpanLabeller extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SpanLabeller.Trainer |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object) |
Span<Term> |
expand(KAFDocument document,
Iterable<Term> heads,
Iterable<Term> excludedTerms,
boolean merge) |
Span<Term> |
expand(KAFDocument document,
Term head,
Iterable<Term> excludedTerms) |
int |
hashCode() |
static SpanLabeller |
readFrom(Path path) |
String |
toString() |
static SpanLabeller.Trainer |
train() |
void |
writeTo(Path path) |
public static SpanLabeller readFrom(Path path) throws IOException
IOException
public Span<Term> expand(KAFDocument document, Iterable<Term> heads, Iterable<Term> excludedTerms, boolean merge)
public void writeTo(Path path) throws IOException
IOException
public static SpanLabeller.Trainer train()
Copyright © 2016–2020 FBK. All rights reserved.