edu.illinois.cs.cogcomp.core.datastructures.textannotation.View view; Record record = addRecordViewFromCurator(ta.getText(), TextAnnotationUtilities.getSentenceList(ta), viewName); ViewTypes viewType = ViewNames.getViewType(viewName); Forest depForest = record.getParseViews().get(convertCuratorViewName(viewName)); if (depForest.trees.size() > TextAnnotationUtilities.getSentenceList(ta).size()) throw new AnnotationFailedException("mismatched number of trees and sentences."); if (parseForest.trees.size() > TextAnnotationUtilities.getSentenceList(ta).size()) throw new AnnotationFailedException("mismatched number of trees and sentences.");
edu.illinois.cs.cogcomp.core.datastructures.textannotation.View view; Record record = addRecordViewFromCurator(ta.getText(), TextAnnotationUtilities.getSentenceList(ta), viewName); ViewTypes viewType = ViewNames.getViewType(viewName); Forest depForest = record.getParseViews().get(convertCuratorViewName(viewName)); if (depForest.trees.size() > TextAnnotationUtilities.getSentenceList(ta).size()) throw new AnnotationFailedException("mismatched number of trees and sentences."); if (parseForest.trees.size() > TextAnnotationUtilities.getSentenceList(ta).size()) throw new AnnotationFailedException("mismatched number of trees and sentences.");
public edu.illinois.cs.cogcomp.core.datastructures.textannotation.View getTextAnnotationView(TextAnnotation ta, String viewName) throws TException, AnnotationFailedException, ServiceUnavailableException, SocketException { edu.illinois.cs.cogcomp.core.datastructures.textannotation.View view; Record record = addRecordViewFromCurator(ta.getText(), TextAnnotationUtilities.getSentenceList(ta), viewName); ViewTypes viewType = ViewNames.getViewType(viewName); if (viewType == ViewTypes.TOKEN_LABEL_VIEW) {