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 <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 = "discourseconnectives";
     private String typesTagset;
 
     protected DiscourseConnectivesLayerStored() {
     }
 
     protected DiscourseConnectivesLayerStored(String typesTagset) {
         this. = typesTagset;
     }
 
         this. = connector;
     }
 
     protected void setLayersConnector(TextCorpusLayersConnector connector) {
         this. = connector;
         for (DiscourseConnectiveStored connective : ) {
             for (String tokRef : connective.tokRefs) {
                 connector.token2ItsDConnective.put(connector.tokenId2ItsToken.get(tokRef), connective);
             }
         }
     }
 
     @Override
     public boolean isEmpty() {
         return .isEmpty();
     }
 
     @Override
     public int size() {
         return .size();
     }
 
     @Override
     public String getTypesTagset() {
         return ;
     }
 
     @Override
     public DiscourseConnective getConnective(int index) {
         return .get(index);
     }
 
     @Override
     public DiscourseConnective getConnective(Token token) {
         DiscourseConnective connective = ..get(token);
         return connective;
     }
 
     @Override
     public Token[] getTokens(DiscourseConnective connective) {
         if (connective instanceof DiscourseConnectiveStored) {
             DiscourseConnectiveStored cStored = (DiscourseConnectiveStoredconnective;
            return WlfUtilities.tokenIdsToTokens(cStored.tokRefs.);
        } else {
            return null;
        }
    }
    @Override
    public DiscourseConnective addConnective(List<TokenconnectiveTokens) {
        return addConnective(connectiveTokensnull);
    }
    @Override
    public DiscourseConnective addConnective(List<TokenconnectiveTokensString semanticType) {
        DiscourseConnectiveStored connective = new DiscourseConnectiveStored();
        connective.tokRefs = new String[connectiveTokens.size()];
        connective.type = semanticType;
        for (int i = 0; i < connectiveTokens.size(); i++) {
            Token cToken = connectiveTokens.get(i);
            connective.tokRefs[i] = cToken.getID();
            ..put(cTokenconnective);
        }
        .add(connective);
        return connective;
    }
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(" {");
        if ( != null) {
            sb.append(.).append(" ").append();
        }
        sb.append("}: ");
        sb.append(.toString());
        return sb.toString();
    }
New to GrepCode? Check out our FAQ X