當前位置: 首頁>>代碼示例>>Java>>正文


Java NumberRepresentation類代碼示例

本文整理匯總了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);
}
 
開發者ID:semanticvectors,項目名稱:semanticvectors,代碼行數:14,代碼來源:VectorStoreOrthographical.java

示例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();
  }
}
 
開發者ID:semanticvectors,項目名稱:semanticvectors,代碼行數:17,代碼來源:TermTermVectorsFromLucene.java

示例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());
}
 
開發者ID:tuxdna,項目名稱:semanticvectors-googlecode,代碼行數:14,代碼來源:TermTermVectorsFromLucene.java

示例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);
}
 
開發者ID:tuxdna,項目名稱:semanticvectors-googlecode,代碼行數:7,代碼來源:VectorStoreOrthographical.java


注:本文中的pitt.search.semanticvectors.orthography.NumberRepresentation類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。