edu.stanford.nlp.util.CallbackFunction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of stanford-parser Show documentation
Show all versions of stanford-parser Show documentation
Stanford Parser processes raw text in English, Chinese, German, Arabic, and French, and extracts constituency parse trees.
package edu.stanford.nlp.util;
/** A callback function (along the lines of Berkeley optimization repo), which is currently used in the optimization package.
* In the optimization package, it is used for passing values (newX, iteration, newObjectiveValue, newGradient) at every iteration and
* then you can do whatever you want with those values.
*
* One use case is to print the values in a file; another is do some sanity check etc.
* *
* Created by sonalg on 2/4/15.
*/
public abstract class CallbackFunction {
public abstract void callback(Object... args);
}