Esempio n. 1
0
  @Test
  public void testSentencesGraph() {
    try {
      for (String s : lines) {
        if (!s.isEmpty()) sentencesList.add(ts.tokenize(s));
      }

      //	Graph graph = new Graph(sentencesList);

      //	System.out.println(graph.getV());

    } catch (IOException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }
  }
Esempio n. 2
0
  @Test
  public void testSentences() {
    try {

      assertFalse(lines.isEmpty());

      for (String s : lines) {
        if (!s.isEmpty()) sentencesList.add(ts.tokenize(s));
      }
      assertFalse(sentencesList.isEmpty());

      // for(Sentences s : sentencesList)
      // System.out.print(s.toString());

    } catch (IOException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }
  }