summaryrefslogtreecommitdiff
path: root/src/tdict.h
blob: 9d4318feddb08738f2f0a92696954f9adf76c097 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef _TDICT_H_
#define _TDICT_H_

#include <string>
#include <vector>
#include "wordid.h"

class Vocab;

struct TD {
  static Vocab* dict_;
  static void ConvertSentence(const std::string& sent, std::vector<WordID>* ids);
  static void GetWordIDs(const std::vector<std::string>& strings, std::vector<WordID>* ids);
  static std::string GetString(const std::vector<WordID>& str);
  static WordID Convert(const std::string& s);
  static const char* Convert(const WordID& w);
};

#endif