~ubuntu-branches/ubuntu/oneiric/mozc/oneiric

« back to all changes in this revision

Viewing changes to prediction/dictionary_predictor.h

  • Committer: Bazaar Package Importer
  • Author(s): Nobuhiro Iwamatsu
  • Date: 2010-07-14 03:26:47 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20100714032647-13qjisj6m8cm8jdx
Tags: 0.12.410.102-1
* New upstream release (Closes: #588971).
  - Add mozc-server, mozc-utils-gui and scim-mozc packages.
* Update debian/rules.
  Add --gypdir option to build_mozc.py.
* Update debian/control.
  - Bumped standards-version to 3.9.0.
  - Update description.
* Add mozc icon (Closes: #588972).
* Add patch which revises issue 18.
  ibus_mozc_issue18.patch
* kFreeBSD build support.
  support_kfreebsd.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
namespace mozc {
39
39
 
40
40
class Segments;
41
 
class Dictionary;
 
41
class DictionaryInterface;
42
42
 
43
43
// Dictioanry-based predictor
44
44
class DictionaryPredictor: public PredictorInterface {
46
46
  DictionaryPredictor();
47
47
  virtual ~DictionaryPredictor();
48
48
 
49
 
  // This method is basically called when user hit TAB key.
50
49
  bool Predict(Segments *segments) const;
51
50
 
52
 
  // Automatic prediction. More conservative than Predict()
53
 
  bool Suggest(Segments *segments) const;
54
 
 
55
51
  static void MakeFeature(const string &query,
56
52
                          const string &key,
57
53
                          const string &value,
64
60
  static bool IsZipCodeRequest(const string &key);
65
61
 
66
62
 private:
67
 
  bool Lookup(Segments *segments) const;
68
 
  mutable Dictionary *dictionary_;
 
63
  DictionaryInterface *dictionary_;
69
64
};
70
65
}  // namespace mozc
71
66