blob: 0d146159ab9a1a736be6db46fa881cd3430ebed0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
package org.grammaticalframework.pgf;
import java.util.Iterator;
public interface LiteralCallback {
public CallbackResult match(String ann, int start_offset);
public Iterator<TokenProb> predict(String ann, String prefix);
public static class CallbackResult {
private ExprProb ep;
private int offset;
public CallbackResult(ExprProb ep, int offset) {
this.ep = ep;
this.offset = offset;
}
public ExprProb getExprProb() {
return ep;
}
public int getOffset() {
return offset;
}
}
}
|