Skip to content

Commit

Permalink
add 'l1_flag' in the parser.py for CFKG
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangwang1223 authored Aug 5, 2020
1 parent 530327a commit c03737b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Model/utility/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,8 @@ def parse_args():
help='whether using attention mechanism')
parser.add_argument('--use_kge', type=bool, default=True,
help='whether using knowledge graph embedding')

parser.add_argument('--l1_flag', type=bool, default=True,
help='Flase: using the L2 norm, True: using the L1 norm.')

return parser.parse_args()
return parser.parse_args()

0 comments on commit c03737b

Please sign in to comment.