1   import eu.fbk.dh.tint.inverse.digimorph.annotator.InverseDigiMorph;
2   
3   import java.util.LinkedList;
4   import java.util.List;
5   import java.util.Scanner;
6   
7   /**
8    * Created by giovannimoretti on 31/01/17.
9    */
10  public class InverseDigiTest {
11      public static void main(String[] args) {
12  
13          List<String> text = new LinkedList<String>();
14          Scanner scanner = new Scanner(System.in);
15          String line;
16          while (scanner.hasNextLine()) {
17              line = scanner.nextLine();
18              if (line.compareToIgnoreCase("go()") == 0) {
19                  break;
20              }
21              text.add(line);
22  
23          }
24          InverseDigiMorph dm = new InverseDigiMorph();
25  
26          for (String s : dm.getInverseMorphology(text)) {
27              System.out.println(s);
28          }
29  
30      }
31  }