Codota Logo
BratDocumentStream
Code IndexAdd Codota to your IDE (free)

How to use
BratDocumentStream
in
opennlp.tools.formats.brat

Best Java code snippets using opennlp.tools.formats.brat.BratDocumentStream (Showing top 7 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Point p =
  • Codota Iconnew Point(x, y)
  • Codota Iconnew Point()
  • Codota IconMouseEvent e;e.getPoint()
  • Smart code suggestions by Codota
}
origin: apache/opennlp

private BratNameSampleStream createNameSampleWith(String nameContainsFilter,
                         Set<String> nameTypes) throws IOException {
 Map<String, String> typeToClassMap = new HashMap<>();
 BratAnnotationStreamTest.addEntityTypes(typeToClassMap);
 AnnotationConfiguration config = new AnnotationConfiguration(typeToClassMap);
 File dir = new File(this.getClass().getResource("/opennlp/tools/formats/brat/").getFile());
 FileFilter fileFilter = pathname -> pathname.getName().contains(nameContainsFilter);
 ObjectStream<BratDocument> bratDocumentStream = new BratDocumentStream(config, dir,
   false, fileFilter);
 return new BratNameSampleStream(new NewlineSentenceDetector(),
   WhitespaceTokenizer.INSTANCE, bratDocumentStream, nameTypes);
}
origin: apache/opennlp

reset();
origin: apache/opennlp

 samples = new BratDocumentStream(annConfig,
   params.getBratDataDir(), params.getRecursive(), null);
} catch (IOException e) {
origin: org.apache.opennlp/opennlp-tools

reset();
origin: org.apache.opennlp/opennlp-tools

 samples = new BratDocumentStream(annConfig,
   params.getBratDataDir(), params.getRecursive(), null);
} catch (IOException e) {
origin: ai.idylnlp/idylnlp-opennlp-tools-1.8.3

reset();
origin: ai.idylnlp/idylnlp-opennlp-tools-1.8.3

 samples = new BratDocumentStream(annConfig,
   params.getBratDataDir(), params.getRecursive(), null);
} catch (IOException e) {
opennlp.tools.formats.bratBratDocumentStream

Most used methods

  • <init>
    Creates a BratDocumentStream which reads the documents from the given input directory.
  • reset

Popular in Java

  • Reading from database using SQL prepared statement
  • findViewById (Activity)
  • getContentResolver (Context)
  • onRequestPermissionsResult (Fragment)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now