File: FastLookup.java

package info (click to toggle)
libsecondstring-java 0.1~dfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 764 kB
  • sloc: java: 9,592; xml: 114; makefile: 6
file content (33 lines) | stat: -rwxr-xr-x 848 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package com.wcohen.ss.lookup;

import java.io.*;
import java.util.*;

import com.wcohen.ss.*;
import com.wcohen.ss.api.*;
import com.wcohen.ss.tokens.*;

/**
 * Interface for SoftTFIDFDictionary and the rescoring variant of it.
 * 
 */

public interface FastLookup
{
    /** Lookup items similar to 'toFind', and return the number of
     * items found.  The found items must have a similarity score
     * greater than minScore to 'toFind'.
     */

    public int lookup(double minScore,String toFind);
    
    /** Get the i'th string found by the last lookup */
    public String getResult(int i);

    /** Get the value of the i'th string found by the last lookup */
    public Object getValue(int i);

    /** Get the score of the i'th string found by the last lookup */
    public double getScore(int i);

}