Tabnine Logo
Sentence
Code IndexAdd Tabnine to your IDE (free)

How to use
Sentence
in
de.tudarmstadt.ukp.dkpro.teaching.core

Best Java code snippets using de.tudarmstadt.ukp.dkpro.teaching.core.Sentence (Showing top 5 results out of 315)

origin: de.tudarmstadt.ukp.dkpro.teaching/de.tudarmstadt.ukp.dkpro.teaching.core

@Override
public String toString() {
  return StringUtils.join(getTokens(), ' ');
}
 
origin: de.tudarmstadt.ukp.dkpro.teaching/de.tudarmstadt.ukp.dkpro.teaching.core

public String getFormattedString() {
  return "[" + StringUtils.join(getTokens(), ' ') + "]";
}
origin: de.tudarmstadt.ukp.dkpro.teaching/de.tudarmstadt.ukp.dkpro.teaching.corpus

@Ignore
@Test
public void tazTest() throws Exception {
  TazCorpus corpus = new TazCorpus();
  for (Sentence s : corpus.getSentences()) {
    for (int i=0; i<s.getTokens().size(); i++) {
      System.out.print(s.getTokens().get(i));
    }
  }
}

origin: de.tudarmstadt.ukp.dkpro.teaching/de.tudarmstadt.ukp.dkpro.teaching.frequency

public BrownProvider(int minN, int maxN) throws Exception {
  BrownCorpus brownCorpus = new BrownCorpus();
  
  cfd = new ConditionalFrequencyDistribution<Integer,String>();
  
  if (minN > maxN) {
    throw new IllegalArgumentException("minN > maxN");
  }
  
  for (int i=minN; i<=maxN; i++) {
    for (Sentence s : brownCorpus.getSentences()) {
      cfd.addSamples(
          i,
          new NGramIterable(s.getTokens(), i, i)
      );
    }
  }
}
 
origin: de.tudarmstadt.ukp.dkpro.teaching/de.tudarmstadt.ukp.dkpro.teaching.frequency

  public static void main(String[] args) throws Exception
  {
    Web1TProvider web1t = new Web1TProvider(new Locale("de"), 1);
    BrownCorpus brown = new BrownCorpus();
    
    StopWatch watch = new StopWatch();
    watch.start();
    watch.suspend();

    for (Text text : brown.getTexts()) {
      for (Sentence s : text.getSentences()) {
        for (String t : s.getTokens()) {
          watch.resume();
          web1t.getFrequency(t);
          watch.suspend();
        }
      }
    }
    
    double time = (double) watch.getTime() / 1000;
    System.out.println(time + "s");
  }
}
de.tudarmstadt.ukp.dkpro.teaching.coreSentence

Most used methods

  • getTokens

Popular in Java

  • Parsing JSON documents to java classes using gson
  • compareTo (BigDecimal)
  • startActivity (Activity)
  • getApplicationContext (Context)
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • JCheckBox (javax.swing)
  • JList (javax.swing)
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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