Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitce5b31e

Browse files
add test function
1 parentc7dce73 commitce5b31e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

‎python/dnlp/core/re_cnn.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@
99

1010
classRECNN(RECNNBase):
1111
def__init__(self,config:RECNNConfig,dtype:type=tf.float32,dict_path:str='',mode:str='train',
12-
data_path:str='',relation_count:int=2):
12+
data_path:str='',relation_count:int=2,model_path:str=''):
1313
RECNNBase.__init__(self,config,dict_path)
1414
self.dtype=dtype
1515
self.mode=mode
1616
self.data_path=data_path
17+
self.model_path=model_path
1718
self.relation_count=relation_count
1819

1920
self.concat_embed_size=self.word_embed_size+2*self.position_embed_size

‎python/scripts/rel.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,7 @@ def train_re_cnn():
99
recnn=RECNN(config=config,data_path=data_path,dict_path=dict_path)
1010
recnn.fit()
1111

12+
deftest_re_cnn():
13+
pass
1214
if__name__=='__main__':
1315
train_re_cnn()

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp