Skip to content

Commit

Permalink
srl create model bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ruoshui1126 committed May 8, 2014
1 parent b06be2d commit c4bfbe9
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/srl/DepSRL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,16 @@ int DepSRL::LoadResource(const string &ConfigDir)
m_selectFeats = ConfigDir + "/srl.cfg";
// load srl and prg model
m_srlModel = new maxent::ME_Model;
m_srlModel->load(ConfigDir + "/srl.model");
bool tag = m_srlModel->load(ConfigDir + "/srl.model");
if(!tag) {
return 0;
}

m_prgModel = new maxent::ME_Model;
m_prgModel->load(ConfigDir + "/prg.model");
tag = m_prgModel->load(ConfigDir + "/prg.model");
if(!tag) {
return 0;
}

m_resourceLoaded = true;

Expand Down

0 comments on commit c4bfbe9

Please sign in to comment.