summaryrefslogtreecommitdiff
path: root/src/runtime/java/org/grammaticalframework
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/java/org/grammaticalframework')
-rw-r--r--src/runtime/java/org/grammaticalframework/pgf/PGF.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/runtime/java/org/grammaticalframework/pgf/PGF.java b/src/runtime/java/org/grammaticalframework/pgf/PGF.java
index 6d999f97b..c19264f62 100644
--- a/src/runtime/java/org/grammaticalframework/pgf/PGF.java
+++ b/src/runtime/java/org/grammaticalframework/pgf/PGF.java
@@ -42,6 +42,12 @@ public class PGF {
*/
public native Type getFunctionType(String fun);
+ /** Returns the negative logarithmic probability of the function
+ * with the given name.
+ * @param fun The name of the function.
+ */
+ public native double getFunctionProb(String fun);
+
/** Returns an iterable over the set of all expression in
* the given category. The expressions are enumerated in decreasing
* probability order.