本文整理匯總了Java中pitt.search.semanticvectors.orthography.NumberRepresentation類的典型用法代碼示例。如果您正苦於以下問題:Java NumberRepresentation類的具體用法?Java NumberRepresentation怎麽用?Java NumberRepresentation使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
NumberRepresentation類屬於pitt.search.semanticvectors.orthography包,在下文中一共展示了NumberRepresentation類的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: VectorStoreOrthographical
import pitt.search.semanticvectors.orthography.NumberRepresentation; //導入依賴的package包/類
/**
* Constructs a new vector store with the given arguments, initializing other data structures
* including {@link NumberRepresentation} and {@link StringEdit}.
* @param flagConfig
* @param letterVectors
*/
public VectorStoreOrthographical(FlagConfig flagConfig, VectorStore letterVectors) {
this.flagConfig = flagConfig;
this.letterVectors = letterVectors;
this.objectVectors = new Hashtable<>();
this.theNumbers = new NumberRepresentation(flagConfig);
this.stringVectors = new StringEdit(flagConfig, theNumbers, letterVectors);
}
示例2: initializeNumberRepresentations
import pitt.search.semanticvectors.orthography.NumberRepresentation; //導入依賴的package包/類
/**
* Initialize all number vectors that might be used (i.e. one for each position in the sliding window)
* Used only with {@link PositionalMethod#PROXIMITY}.
*/
private void initializeNumberRepresentations() {
NumberRepresentation numberRepresentation = new NumberRepresentation(flagConfig);
positionalNumberVectors = numberRepresentation.getNumberVectors(1, 2 * flagConfig.windowradius() + 2);
try {
VectorStoreWriter.writeVectorsInLuceneFormat("numbervectors.bin", flagConfig, positionalNumberVectors);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
示例3: initializeNumberRepresentations
import pitt.search.semanticvectors.orthography.NumberRepresentation; //導入依賴的package包/類
/**
* Initialize all number vectors that might be used (i.e. one for each position in the sliding window)
* Used only with {@link PositionalMethod#PROXIMITY}.
*/
private void initializeNumberRepresentations() {
NumberRepresentation numberRepresentation = new NumberRepresentation(flagConfig);
positionalNumberVectors = numberRepresentation.getNumberVectors(1, 2*flagConfig.windowradius() + 2);
this.initializeDirectionalPermutations();
Enumeration<ObjectVector> VEN = positionalNumberVectors.getAllVectors();
while (VEN.hasMoreElements())
VerbatimLogger.finest("Initialized number representation: " + VEN.nextElement().getObject());
}
示例4: VectorStoreOrthographical
import pitt.search.semanticvectors.orthography.NumberRepresentation; //導入依賴的package包/類
public VectorStoreOrthographical(FlagConfig flagConfig) {
this.flagConfig = flagConfig;
this.objectVectors = new Hashtable<Object, ObjectVector>();
this.theNumbers = new NumberRepresentation(flagConfig);
this.letterVectors = new VectorStoreRAM(flagConfig);
}