summaryrefslogtreecommitdiff
path: root/gi/pf/os_phrase.h
blob: dfe40cb174158b86dc95b25c49f351b4545622e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef _OS_PHRASE_H_
#define _OS_PHRASE_H_

#include <iostream>
#include <vector>
#include "tdict.h"

inline std::ostream& operator<<(std::ostream& os, const std::vector<WordID>& p) {
  os << '[';
  for (int i = 0; i < p.size(); ++i)
    os << (i==0 ? "" : " ") << TD::Convert(p[i]);
  return os << ']';
}

#endif