Package eu.clarin.weblicht.wlfxb.lx.xb
Class CooccurrencesLayerStored
- java.lang.Object
-
- eu.clarin.weblicht.wlfxb.lx.xb.LexiconLayerStoredAbstract
-
- eu.clarin.weblicht.wlfxb.lx.xb.TermsContainerStored
-
- eu.clarin.weblicht.wlfxb.lx.xb.CooccurrencesLayerStored
-
- All Implemented Interfaces:
CooccurrencesLayer
,LexiconLayer
,TermsContainer
public class CooccurrencesLayerStored extends TermsContainerStored implements CooccurrencesLayer
- Author:
- Yana Panchenko
-
-
Field Summary
-
Fields inherited from class eu.clarin.weblicht.wlfxb.lx.xb.TermsContainerStored
connector
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
CooccurrencesLayerStored()
protected
CooccurrencesLayerStored(LexiconLayersConnector connector)
-
Method Summary
Modifier and Type Method Description Cooccurrence
addCooccurrence(CooccurrenceFunction function, Sig sig, List<Term> terms)
Cooccurrence
addCooccurrence(CooccurrenceFunction function, List<Term> terms)
Cooccurrence
getCooccurrence(int index)
Cooccurrence[]
getCooccurrences(Entry entry)
Entry[]
getEntries(Cooccurrence cooccurrence)
String[]
getTermsAsStrings(Cooccurrence cooccurrence, boolean includeAnnotatedTerm)
boolean
isEmpty()
protected void
setLayersConnector(LexiconLayersConnector connector)
Should not be used directly by users.int
size()
String
toString()
-
Methods inherited from class eu.clarin.weblicht.wlfxb.lx.xb.TermsContainerStored
createSig, createTerm, createTerm, getTermsAsStrings
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface eu.clarin.weblicht.wlfxb.lx.api.TermsContainer
createSig, createTerm, createTerm, getTermsAsStrings
-
-
-
-
Field Detail
-
XML_NAME
public static final String XML_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CooccurrencesLayerStored
protected CooccurrencesLayerStored()
-
CooccurrencesLayerStored
protected CooccurrencesLayerStored(LexiconLayersConnector connector)
-
-
Method Detail
-
setLayersConnector
protected void setLayersConnector(LexiconLayersConnector connector)
Description copied from class:LexiconLayerStoredAbstract
Should not be used directly by users. Should be extended by all implementations of TextCorpusLayers, as they might depend on other layers and therefore be able to get referenced/referencing information.- Overrides:
setLayersConnector
in classTermsContainerStored
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfaceLexiconLayer
-
size
public int size()
- Specified by:
size
in interfaceLexiconLayer
-
getCooccurrence
public Cooccurrence getCooccurrence(int index)
- Specified by:
getCooccurrence
in interfaceCooccurrencesLayer
-
getCooccurrences
public Cooccurrence[] getCooccurrences(Entry entry)
- Specified by:
getCooccurrences
in interfaceCooccurrencesLayer
-
getEntries
public Entry[] getEntries(Cooccurrence cooccurrence)
- Specified by:
getEntries
in interfaceCooccurrencesLayer
-
getTermsAsStrings
public String[] getTermsAsStrings(Cooccurrence cooccurrence, boolean includeAnnotatedTerm)
- Specified by:
getTermsAsStrings
in interfaceCooccurrencesLayer
-
addCooccurrence
public Cooccurrence addCooccurrence(CooccurrenceFunction function, List<Term> terms)
- Specified by:
addCooccurrence
in interfaceCooccurrencesLayer
-
addCooccurrence
public Cooccurrence addCooccurrence(CooccurrenceFunction function, Sig sig, List<Term> terms)
- Specified by:
addCooccurrence
in interfaceCooccurrencesLayer
-
-