@@ -0,0 +1,1117 @@
+/*%0A * To change this license header, choose License Headers in Project Properties.%0A * To change this template file, choose Tools %7C Templates%0A * and open the template in the editor.%0A */%0Apackage edu.uc.mahout.base.topicmodel;%0A%0Aimport com.google.gson.JsonArray;%0Aimport com.google.gson.JsonParser;%0Aimport edu.ucuenca.kodar.utils.Service;%0Aimport java.io.IOException;%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0A%0A%0A/**%0A *%0A * @author Xavier Sumba %3Cxavier.sumba93@ucuenca.ec%3E%0A */%0Apublic class Cortical %7B%0A%0A    private List%3CString%3E labels = new ArrayList%3C%3E();%0A%0A    public void addLabels(String text) throws IOException %7B%0A        labels.add(Service.getInstance().findKeywords(text));%0A    %7D%0A%0A    public void removeLabels(int index) %7B%0A        labels.remove(index);%0A    %7D%0A%0A    public String getLabel() throws IOException %7B%0A        StringBuilder text = new StringBuilder();%0A%0A        for (String label : labels) %7B%0A            text.append(label);%0A        %7D%0A        JsonArray array = (JsonArray)new JsonParser().parse(Service.getInstance().findKeywords(text.toString()));%0A        return array.get(0).getAsString();%0A    %7D%0A%0A    %0A%7D%0A

Manage cortical labels.