All Downloads are FREE. Search and download functionalities are using the official Maven repository.

edu.berkeley.nlp.util.Option Maven / Gradle / Ivy

Go to download

The Berkeley parser analyzes the grammatical structure of natural language using probabilistic context-free grammars (PCFGs).

The newest version!
package edu.berkeley.nlp.util;

import java.lang.annotation.*;

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface Option {
  String name() default "";
  String gloss() default "";
  boolean required() default false;

  // Conditionally required option, e.g.
  //   - "main.operation": required only when main.operation specified
  //   - "main.operation=op1": required only when main.operation takes on value op1
  //   - "operation=op1": the group of the option is used
  String condReq() default "";
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy