eu.clarin.weblicht.wlfxb.tc.api
Interface MatchesLayer

All Superinterfaces:
TextCorpusLayer
All Known Implementing Classes:
MatchesLayerStored

public interface MatchesLayer
extends TextCorpusLayer

The MatchesLayer layer is present when the TCF data is generated by querying text corpus resources. The layer consists of the original query string and query type (ie the language of the query), and of corpus elements. Each corpus element has a name, a persistent identifier and a list of items. Each item references a token, or sequence of tokens, in the TCF tokens layer and a token, or sequence of tokens, in the original corpus. It specifies the target (if requested in the query), and categories (if additional information about the corresponding original resource can be given, such as document name, author, genre, etc.).

Author:
Yana Panchenko

Method Summary
 MatchedCorpus addCorpus(String corpusName, String corpusPID)
           
 MatchedItem addItem(MatchedCorpus corpusToAddItem, List<Token> itemTokens)
           
 MatchedItem addItem(MatchedCorpus corpusToAddItem, List<Token> itemTokens, List<String> itemOriginCorpusTokenIds)
           
 MatchedItem addItem(MatchedCorpus corpusToAddItem, List<Token> itemTokens, List<String> itemOriginCorpusTokenIds, Map<String,String> itemTargets, Map<String,String> itemCategories)
           
 MatchedItem addItem(MatchedCorpus corpusToAddItem, List<Token> itemTokens, Map<String,String> itemTargets, Map<String,String> itemCategories)
           
 MatchedCorpus getCorpus(int index)
           
 MatchedItem getMatchedItem(Token token)
           
 String getQueryString()
           
 String getQueryType()
           
 Token[] getTokens(MatchedItem item)
           
 
Methods inherited from interface eu.clarin.weblicht.wlfxb.tc.api.TextCorpusLayer
isEmpty, size
 

Method Detail

getQueryType

String getQueryType()

getQueryString

String getQueryString()

getCorpus

MatchedCorpus getCorpus(int index)

addCorpus

MatchedCorpus addCorpus(String corpusName,
                        String corpusPID)

addItem

MatchedItem addItem(MatchedCorpus corpusToAddItem,
                    List<Token> itemTokens,
                    List<String> itemOriginCorpusTokenIds)

addItem

MatchedItem addItem(MatchedCorpus corpusToAddItem,
                    List<Token> itemTokens)

addItem

MatchedItem addItem(MatchedCorpus corpusToAddItem,
                    List<Token> itemTokens,
                    List<String> itemOriginCorpusTokenIds,
                    Map<String,String> itemTargets,
                    Map<String,String> itemCategories)

addItem

MatchedItem addItem(MatchedCorpus corpusToAddItem,
                    List<Token> itemTokens,
                    Map<String,String> itemTargets,
                    Map<String,String> itemCategories)

getTokens

Token[] getTokens(MatchedItem item)

getMatchedItem

MatchedItem getMatchedItem(Token token)


Copyright © 2013 Department of Linguistics, Tübingen University. All Rights Reserved.