Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
wlfxb - a library for creating and processing of TCF data streams. Copyright (C) University of Tübingen. This file is part of wlfxb. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see <>.
public class TextCorpusLayersConnector {
    // maps for connecting elements of different layers that reference one another
    protected Map<StringTokentokenId2ItsToken = new HashMap<StringToken>();
    protected List<TokenStoredtokens;
    protected Map<StringLemmalemmaId2ItsLemma = new HashMap<StringLemma>();
    protected Map<TokenLemmatoken2ItsLemma = new HashMap<TokenLemma>();
    protected Map<TokenPosTagtoken2ItsPosTag = new HashMap<TokenPosTag>();
    protected Map<TokenSentencetoken2ItsSentence = new HashMap<TokenSentence>();
    //Map<Token,NamedEntity> token2ItsNE = new HashMap<Token,NamedEntity>();
    protected Map<TokenList<NamedEntity>> token2ItsNE = new HashMap<TokenList<NamedEntity>>();
    //Map<Token,Referent> token2ItsReferent = new HashMap<Token,Referent>();
    protected Map<StringReferencereferenceId2ItsReference = new HashMap<StringReference>();
    protected Map<TokenRelationtoken2ItsRelation = new HashMap<TokenRelation>();
    protected Map<TokenWordSplittoken2ItsSplit = new HashMap<TokenWordSplit>();
    protected Map<TokenMatchedItemtoken2ItsMatchedItem = new HashMap<TokenMatchedItem>();
    protected Map<TokenGeoPointtoken2ItsGeopoint = new HashMap<TokenGeoPoint>();
    protected Map<LemmaOrthformlemma2ItsSynonyms = new HashMap<LemmaOrthform>();
    protected Map<LemmaOrthformlemma2ItsAntonyms = new HashMap<LemmaOrthform>();
    protected Map<LemmaOrthformlemma2ItsHyponyms = new HashMap<LemmaOrthform>();
    protected Map<LemmaOrthformlemma2ItsHyperonyms = new HashMap<LemmaOrthform>();
    //protected Map<TextSpanType, Map<Token, TextSpan>> token2ItsTextSpans = new EnumMap<TextSpanType, Map<Token, TextSpan>>(TextSpanType.class);
    protected Map<StringMap<TokenTextSpan>> token2ItsTextSpans = new HashMap<StringMap<TokenTextSpan>>();
    protected Map<StringConstituentconstitId2ItsConstit = new HashMap<StringConstituent>();
    protected Map<TokenWordSense>  token2ItsWordSense = new HashMap<TokenWordSense>();
//       initSubmaps();
//    private void initSubmaps() {
//        for (TextSpanType value : TextSpanType.values()) {
//            token2ItsTextSpans.put(value, new HashMap<Token, TextSpan>());
//        }
//    }
New to GrepCode? Check out our FAQ X