Tabnine Logo
ILPSolverFactory.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
edu.illinois.cs.cogcomp.infer.ilp.ILPSolverFactory
constructor

Best Java code snippets using edu.illinois.cs.cogcomp.infer.ilp.ILPSolverFactory.<init> (Showing top 6 results out of 315)

origin: CogComp/cogcomp-nlp

  public TokenLabelView getPrediction(TextAnnotation ta) throws Exception {
    log.debug("Input: {}", ta.getText());
    List<Constituent> predicates = manager.getPredicateDetector().getPredicates(ta);
    // If there are no verb identified, return an empty TokenLabelView
    if (predicates.isEmpty())
      return new TokenLabelView(SenseManager.getPredictedViewName(),
          VerbSenseConstants.systemIdentifier, ta, 1.0);

    ILPSolverFactory solver =
        new ILPSolverFactory(ILPSolverFactory.SolverType.JLISCuttingPlaneGurobi);
    ILPInference inference = manager.getInference(solver, predicates);
    return inference.getOutputView();
  }
}
origin: edu.illinois.cs.cogcomp/illinois-verbsense

  public TokenLabelView getPrediction(TextAnnotation ta) throws Exception {
    log.debug("Input: {}", ta.getText());
    List<Constituent> predicates = manager.getPredicateDetector().getPredicates(ta);
    // If there are no verb identified, return an empty TokenLabelView
    if (predicates.isEmpty())
      return new TokenLabelView(SenseManager.getPredictedViewName(),
          VerbSenseConstants.systemIdentifier, ta, 1.0);

    ILPSolverFactory solver =
        new ILPSolverFactory(ILPSolverFactory.SolverType.JLISCuttingPlaneGurobi);
    ILPInference inference = manager.getInference(solver, predicates);
    return inference.getOutputView();
  }
}
origin: edu.illinois.cs.cogcomp/illinois-srl

public PredicateArgumentView getSRL(TextAnnotation ta) throws Exception {
  log.debug("Input: {}", ta.getText());
  List<Constituent> predicates;
  if (manager.getSRLType() == SRLType.Verb)
    predicates = manager.getHeuristicPredicateDetector().getPredicates(ta);
  else
    predicates = manager.getLearnedPredicateDetector().getPredicates(ta);
  if (predicates.isEmpty())
    return null;
  ILPSolverFactory s = new ILPSolverFactory(properties.getILPSolverType(false));
  SRLILPInference inference = new SRLILPInference(s, manager, predicates);
  return inference.getOutputView();
}
origin: CogComp/cogcomp-nlp

new ILPSolverFactory(ILPSolverFactory.SolverType.JLISCuttingPlaneGurobi);
origin: edu.illinois.cs.cogcomp/illinois-verbsense

new ILPSolverFactory(ILPSolverFactory.SolverType.JLISCuttingPlaneGurobi);
origin: edu.illinois.cs.cogcomp/illinois-srl

ILPSolverFactory solver = new ILPSolverFactory(properties.getILPSolverType(true));
edu.illinois.cs.cogcomp.infer.ilpILPSolverFactory<init>

Javadoc

Create ILP solvers that perform beam search with a specified beam size

Popular methods of ILPSolverFactory

  • getSolver

Popular in Java

  • Finding current android device location
  • putExtra (Intent)
  • setContentView (Activity)
  • startActivity (Activity)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • ImageIO (javax.imageio)
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • 21 Best IntelliJ Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now