Uses of Class
iglu.ir.TermVector

Packages that use TermVector
iglu.examples Some examples to illustrate how the classes work. 
iglu.ir A set of classes for creating Information Retrieval programs. 
 

Uses of TermVector in iglu.examples
 

Methods in iglu.examples with parameters of type TermVector
 void DirectorySearchEngine.doSearch(java.io.File directory, TermVector query)
          Indexes all files in the directory, and sends the query to the engine.
private  void DirectorySearchEngine.printResults(TermVector query, ValueSortedMap results)
          Prints out the list of files that match the query.
 

Uses of TermVector in iglu.ir
 

Fields in iglu.ir declared as TermVector
(package private)  TermVector TermVectorTableModel.tv
          The term vector being displayed.
private  TermVector JDBCVectorCreator.localTerms
           
private  TermVector[] DefaultIRPacket.queries
           
private  TermVector AbstractDocument.tv
          Contains a list of words occurring and how often they occur
private  TermVector GeneralVectorCreator.documentFrequency
          A term vector indicating the number of documents in which a term appears.
private  TermVector GeneralVectorCreator.globalFrequency
           
private  TermVector GeneralVectorCreator.globalWeight
           
private  TermVector GeneralVectorCreator.validIndexingTerms
           
private  TermVector AbstractVectorCreator.dictionary
           
private  TermVector TFIDFVectorCreator.docOccurs
          A term vector indicating the number of documents in which a term appears.
static TermVector TermVector.EMPTY
          An empty term vector, for use when you don't want to do anthing to the vector.
 

Methods in iglu.ir that return TermVector
 TermVector PhraseFrequencyVectorCreator.getVector(Document d)
          Sets phrase scores based on the frequency of bigrams.
 TermVector OrderVectorCreator.getVector(Document d)
          Sets keyword scores based on the order of word occurance.
 TermVector JDBCVectorCreator.getVector(Document d)
          Get a vector for the given document.
 TermVector JDBCVectorCreator.getVector(TermVector freqVec)
          Get a vector for the given document when the term frequencies are known.
 TermVector InvertedIndex.getVector(java.lang.Object docId)
          Returns the term vector assocated with a document ID.
 TermVector FrequencyVectorCreator.getVector(Document d)
          Sets keyword scores based on the frequency of the words.
 TermVector[] DefaultIRPacket.allQueries()
          Get the queries
 TermVector FileSearchEngine.getVector(java.io.Serializable docId)
           
static TermVector FileSearchEngine.stringToTV(java.lang.String s)
           
 TermVector[] IRPacket.allQueries()
          A set of queries for this packet
 TermVector GeneralVectorCreator.getVector(Document d)
          Get a vector for the given document.
 TermVector GeneralVectorCreator.getVector(TermVector freqVec, int docLength)
          Get a vector for the given document when the term frequencies are known.
 TermVector VectorCreator.getVector(Document d)
          Get a vector for document d.
 TermVector TFIDFVectorCreator.getDocOccurs()
          Returns a term vector indicating the number of documents in which each term appears.
 TermVector TFIDFVectorCreator.getVector(Document d)
          Get a vector for the given document.
 TermVector TFIDFVectorCreator.getVector(TermVector freqVec)
          Get a vector for the given document when the term frequencies are known.
 TermVector TermVector.topN(int n)
          Returns a new (clone) TermVector containing the top n words in the TermVector, along with their values.
 TermVector SearchEngine.getVector(java.io.Serializable docId)
          Get the vector for the given document.
 TermVector RAMSearchEngine.getVector(java.io.Serializable docId)
          Get the vector for the given document.
 

Methods in iglu.ir with parameters of type TermVector
private  void TermVectorTableModel.loadLinkedList(TermVector tv)
          Sets up the internal representation of the TermVector
 void JDBCVectorCreator.addDoc(TermVector freqVec)
          Add a document to the corpus, when the term frequencies are known.
 TermVector JDBCVectorCreator.getVector(TermVector freqVec)
          Get a vector for the given document when the term frequencies are known.
 void InvertedIndex.put(java.io.Serializable docId, TermVector docVector)
          Adds a document to the index.
 void FileSearchEngine.addDocument(java.io.Serializable docId, java.io.Serializable docData, TermVector docVector)
           
 double FileSearchEngine.getSimilarityScore(TermVector vector1, TermVector vector2)
           
 double FileSearchEngine.getSimilarityScore(TermVector vector1, TermVector vector2)
           
 ValueSortedMap FileSearchEngine.retrieveDocuments(TermVector vector, int numSimilar)
           
 void FileSearchEngine.setVector(java.io.Serializable docId, TermVector docVector)
           
protected  PRResult PrecisionRecall.testVector(TermVector v, int[] goodDocs, java.io.Serializable qid)
          Test a vector, assuming that goodDocs contain references to the relevant documents in the document set.
 void GeneralVectorCreator.addDoc(TermVector freqVec)
          Add a document to the corpus, when the term frequencies are known.
 TermVector GeneralVectorCreator.getVector(TermVector freqVec, int docLength)
          Get a vector for the given document when the term frequencies are known.
 void VectorCreator.setDictionary(TermVector dict)
          Tell the system to only allow words contained in dict to appear in the vector for a document.
 void AbstractVectorCreator.setDictionary(TermVector dict)
          Set a dictionary controlling the vocabulary allowed in this vector.
protected  void AbstractVectorCreator.cleanUp(TermVector candidate)
          Alter a vector to conform to the settings made here.
 void TFIDFVectorCreator.addDoc(TermVector freqVec)
          Add a document to the corpus, when the term frequencies are known.
 TermVector TFIDFVectorCreator.getVector(TermVector freqVec)
          Get a vector for the given document when the term frequencies are known.
 void TermVector.putAll(TermVector additional)
          Adds the contents of another term vetor to this one.
 void TermVector.subtract(TermVector subWords)
          Performs a set difference on the list of terms.
 double TermVector.cosineSim(TermVector tv)
          Gives the 2-norm (euclidean distance) between this vector and the given one.
 ValueSortedMap InformationSource.retrieveDocuments(TermVector query, int numToRetrieve)
          Retrieves documents from the information source that match a given query in a particular context.
 double SearchEngine.getSimilarityScore(TermVector vector1, TermVector vector2)
          Returns the similarity of the two vectors based on the metric indicated by getMetricName().
 double SearchEngine.getSimilarityScore(TermVector vector1, TermVector vector2)
          Returns the similarity of the two vectors based on the metric indicated by getMetricName().
 void SearchEngine.addDocument(java.io.Serializable docId, java.io.Serializable docData, TermVector docVector)
          Add a vector to the collection.
 void SearchEngine.setVector(java.io.Serializable docId, TermVector docVector)
          Change the vector for docId to the given vector.
 ValueSortedMap SearchEngine.retrieveDocuments(TermVector vector, int numSimilar)
          Return a list of document identifiers with documents similar to the given vector, sorted by similarity.
 double RAMSearchEngine.getSimilarityScore(TermVector vector1, TermVector vector2)
          Returns the similarity of the two vectors based on the metric indicated by getMetricName().
 double RAMSearchEngine.getSimilarityScore(TermVector vector1, TermVector vector2)
          Returns the similarity of the two vectors based on the metric indicated by getMetricName().
 void RAMSearchEngine.addDocument(java.io.Serializable docId, java.io.Serializable docData, TermVector docVector)
          Add a vector to the collection.
 void RAMSearchEngine.setVector(java.io.Serializable docId, TermVector docVector)
          Change the vector for docId to the given vector.
 ValueSortedMap RAMSearchEngine.retrieveDocuments(TermVector vector, int numSimilar)
          Return a list of document identifiers with documents similar to the given vector, sorted by similarity.
 

Constructors in iglu.ir with parameters of type TermVector
TermVectorTableModel(TermVector tv)
          Creates new TermVectorTableModel
TermVectorTableModel(TermVector tv, boolean reverse)
          Creates new TermVectorTableModel
TermVectorTableModel(TermVector tv, int precision, boolean reverse)
          Create new TermVectorTableModel.
TermVectorTableModel(TermVector tv, int precision)
          Create new TermVectorTableModel.
DefaultIRPacket(DocumentSet d, TermVector[] q, int[][] mapping)
           
GeneralVectorCreator(TermVector globalFrequency, TermVector documentFrequency, int numDocs)
          Create a new GeneralVectorCreator using the supplied information.
GeneralVectorCreator(TermVector globalFrequency, TermVector documentFrequency, int numDocs)
          Create a new GeneralVectorCreator using the supplied information.
TFIDFVectorCreator(TermVector docOccurs, int numDocs)
          Create a new TFIDFVectorCreator using the supplied information.