code format check

This commit is contained in:
mayunyun 2016-04-25 20:28:47 +08:00
parent 669e971e3e
commit 1aa0a32d90

View File

@ -12,15 +12,15 @@ namespace cppjieba {
public: public:
typedef struct _Word {string word;vector<size_t> offsets;double weight;} Word; // struct Word typedef struct _Word {string word;vector<size_t> offsets;double weight;} Word; // struct Word
private: private:
typedef std::unordered_map<string,Word> WordMap; typedef std::unordered_map<string,Word> WordMap;
class WordGraph{ class WordGraph{
private: private:
typedef double Score; typedef double Score;
typedef string Node; typedef string Node;
typedef std::unordered_set<Node> NodeSet; typedef std::unordered_set<Node> NodeSet;
typedef std::unordered_map<Node,double> Edges; typedef std::unordered_map<Node,double> Edges;
typedef std::unordered_map<Node,Edges> Graph; typedef std::unordered_map<Node,Edges> Graph;
double d; double d;
Graph graph; Graph graph;