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) Yana Panchenko. 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 <http://www.gnu.org/licenses/>.
 
 
 package eu.clarin.weblicht.wlfxb.tc.xb;
 
 import java.util.List;

Author(s):
Yana Panchenko
 
 
     public static final String XML_NAME = "WordSplittings";
     @XmlAttribute(name = .)
     private String type;
     private List<WordSplitStoredsplits = new ArrayList<WordSplitStored>();
 
     protected void setLayersConnector(TextCorpusLayersConnector connector) {
         this. = connector;
         for (WordSplitStored split : ) {
             connector.token2ItsSplit.put(connector.tokenId2ItsToken.get(split.tokRef), split);
         }
     }
 
     protected WordSplittingLayerStored() {
     }
 
     protected WordSplittingLayerStored(String type) {
         this. = type;
     }
 
     protected WordSplittingLayerStored(TextCorpusLayersConnector connector) {
         this. = connector;
     }
 
     @Override
     public boolean isEmpty() {
         return .isEmpty();
     }
 
     @Override
     public int size() {
         return .size();
     }
 
     @Override
     public String getType() {
         return ;
     }
 
     @Override
     public WordSplit getSplit(int index) {
         return .get(index);
     }
 
     @Override
     public WordSplit getSplit(Token token) {
         return this...get(token);
     }
 
     @Override
     public Token getToken(WordSplit split) {
         if (split instanceof WordSplitStored) {
             return this...get(((WordSplitStoredsplit).);
         } else {
             throw new UnsupportedOperationException(WlfUtilities.layersErrorMessage(WordSplit.classWordSplittingLayer.class));
         }
    }
    @Override
    public WordSplit addSplit(Token tokenint[] splitIndices) {
        WordSplitStored wordSplit = new WordSplitStored();
        wordSplit.splitIndices = splitIndices;
        wordSplit.tokRef = token.getID();
        .add(wordSplit);
        return wordSplit;
    }
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(" {");
        sb.append();
        sb.append("}: ");
        sb.append(.toString());
        return sb.toString();
    }
New to GrepCode? Check out our FAQ X