Changeset 6988


Ignore:
Timestamp:
02/24/16 13:33:39 (9 years ago)
Author:
Leif-Jöran
Message:

Completing the translation configuration test from provided file by printing the annotation tables instead of trying to find CGN tables to test if there are no CGN translation types provided.

Location:
FCSannotrans/trunk/src/main/java/nl/mpi/annot/translate
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • FCSannotrans/trunk/src/main/java/nl/mpi/annot/translate/AnnotationTranslator.java

    r6979 r6988  
    77
    88import java.util.ArrayList;
     9import java.util.List;
    910
    1011/**
     
    5354        return translationTypes.getTranslationType(ttId);
    5455    }
    55    
     56
     57    public List<TranslationTable> getTranslationTables() {
     58        return translationTables.getList();
     59    }
     60
    5661    TranslationTable findTranslationTable(String fromRes, String fromLay, String toRes, String toLay, TranslationType ty) {
    5762        return translationTables.find(fromRes, fromLay, toRes, toLay, ty);
  • FCSannotrans/trunk/src/main/java/nl/mpi/annot/translate/AnnotationTranslatorTestDriver.java

    r6987 r6988  
    156156            return;
    157157        }
    158         if (!getTranslationTypeData(at)) {
    159             return;
    160         }
    161         if (!getTranslationTableData(at)) {
    162             return;
    163         }
    164         testPoSTranslations(at);
    165         testPhonTranslations(at);       
     158        if (getTranslationTypeData(at) && getTranslationTableData(at)) {
     159            testPoSTranslations(at);
     160            testPhonTranslations(at);       
     161        } else {
     162            for (TranslationTable ttable : at.getTranslationTables()) {
     163                ttable.display();
     164            }
     165        }
    166166    }
    167167       
  • FCSannotrans/trunk/src/main/java/nl/mpi/annot/translate/TranslationTables.java

    r6979 r6988  
    88import java.util.ArrayList;
    99import java.util.HashMap;
     10import java.util.List;
    1011
    1112/**
     
    5455        return nw;
    5556    }
     57
     58    public List<TranslationTable> getList() {
     59        return translationTableArray;
     60    }
    5661   
    5762    TranslationTable find(String fromRes, String fromLay, String toRes, String toLay, TranslationType ty) {
Note: See TracChangeset for help on using the changeset viewer.