public class CoOccurrenceLookup
extends com.exalead.gni.GNIObject
Constructor and Description |
---|
CoOccurrenceLookup(CoOccurrenceResource resource)
Initialize a new CoOccurrenceLookup
|
Modifier and Type | Method and Description |
---|---|
protected void |
finalize() |
CoOccurrence[] |
getEntry(java.lang.String word,
int lang)
Lookup in the resource and order results by mutual inclusion
|
java.util.List<java.util.Map.Entry<java.lang.Double,CoOccurrence>> |
getEntryOrderedByMI(java.lang.String word,
int lang)
Lookup in the resource and order results by mutual inclusion
|
java.util.List<java.util.Map.Entry<java.lang.Double,CoOccurrence>> |
getEntryOrderedByMI(java.lang.String word,
int lang,
int maxItems)
Lookup in the resource and order results by mutual inclusion
|
long |
getFreq(java.lang.String word,
int lang)
Get a co-occurence frequency
|
public CoOccurrenceLookup(CoOccurrenceResource resource)
resource
- The resourcepublic java.util.List<java.util.Map.Entry<java.lang.Double,CoOccurrence>> getEntryOrderedByMI(java.lang.String word, int lang, int maxItems)
word
- The original wordlang
- The languagemaxItems
- The maximum number of items to fetchpublic java.util.List<java.util.Map.Entry<java.lang.Double,CoOccurrence>> getEntryOrderedByMI(java.lang.String word, int lang)
word
- The original wordlang
- The languagepublic CoOccurrence[] getEntry(java.lang.String word, int lang)
word
- The original wordlang
- The languagepublic long getFreq(java.lang.String word, int lang)
word
- The cooccurrencelang
- The languageprotected void finalize()
finalize
in class java.lang.Object
Copyright © 2013 Dassault Systèmes, All Rights Reserved.