public static class Lexicon.Lexeme extends Object implements Comparable<Lexicon.Lexeme>
Constructor and Description |
---|
Lexeme(String id,
Iterable<Lexicon.Token> tokens) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Lexicon.Lexeme lexeme) |
static <T extends Lexicon.Lexeme> |
create(Class<T> lexemeClass,
String id,
Iterable<Lexicon.Token> tokens,
Map<String,String> properties) |
boolean |
equals(Object object) |
String |
getId() |
protected Map<String,String> |
getProperties() |
List<Lexicon.Token> |
getTokens() |
int |
hashCode() |
boolean |
match(KAFDocument document,
Iterable<Term> terms,
Term head) |
static <T extends Lexicon.Lexeme> |
parse(Class<T> lexemeClass,
String string) |
String |
toString() |
<T extends Appendable> |
toString(T out) |
public Lexeme(String id, Iterable<Lexicon.Token> tokens)
public static <T extends Lexicon.Lexeme> T create(Class<T> lexemeClass, String id, Iterable<Lexicon.Token> tokens, @Nullable Map<String,String> properties)
@Nullable public static <T extends Lexicon.Lexeme> T parse(Class<T> lexemeClass, String string)
public final String getId()
public final List<Lexicon.Token> getTokens()
public final boolean match(KAFDocument document, Iterable<Term> terms, Term head)
public final int compareTo(Lexicon.Lexeme lexeme)
compareTo
in interface Comparable<Lexicon.Lexeme>
public final <T extends Appendable> T toString(T out) throws IOException
IOException
Copyright © 2016–2020 FBK. All rights reserved.