Class Vocabulary

java.lang.Object
javadocofflinesearch.extensions.Vocabulary

public class Vocabulary extends Object
  • Field Details

  • Constructor Details

    • Vocabulary

      public Vocabulary(File cache)
  • Method Details

    • getFile

      public File getFile()
    • add

      public void add(String[] nwv)
    • saveVocs

      public void saveVocs() throws IOException
      Throws:
      IOException
    • laodVocs

      public void laodVocs() throws IOException
      Throws:
      IOException
    • didYouMeanORIG

      public List<String> didYouMeanORIG(int count, String... queryStrings)
      this one takes ALL querySAtrings, put them to ONE list, then sort and take best of ALL
      Parameters:
      count -
      queryStrings -
      Returns:
    • didYouMean

      public List<String> didYouMean(int count, String... queryStrings)
      this one takes ALL querySAtrings, put them to ALL lists, then sort and take best of EACH
      Parameters:
      count -
      queryStrings -
      Returns:
    • didYouMean

      public List<String> didYouMean(int count, String queryString)
    • didYouMean

      public static List<String> didYouMean(int count, Iterable<String> posibilities, String queryString)
    • isEmpty

      public boolean isEmpty()
    • size

      public int size()
    • addAll

      public void addAll(String s)