models icon indicating copy to clipboard operation
models copied to clipboard

fml parameter in dragnn model

Open jingcangcang opened this issue 9 years ago • 2 comments

is there some rules to representent fml? I can't find code to illustrate this? Can somebody tell me? Thanks.

jingcangcang avatar Apr 12 '17 10:04 jingcangcang

Here are some pointers:

  • The fml grammar is defined in https://github.com/tensorflow/models/blob/master/syntaxnet/syntaxnet/fml_parser.h
  • You can see how some specific features are defined and registered (at the bottom of the file) in https://github.com/tensorflow/models/blob/master/syntaxnet/syntaxnet/sentence_features.cc

The features used in DRAGNN are the ones defined in SyntaxNet.

Probably the quickest way to explore how features are defined is to search for REGISTER_SYNTAXNET_FEATURE_FUNCTION and look at the types of feature functions registered:

  • REGISTER_SENTENCE_IDX_FEATURE
  • REGISTER_PARSER_FEATURE_FUNCTION
  • REGISTER_PARSER_IDX_FEATURE_FUNCTION

and the features these macros are used to register.

andorardo avatar Apr 13 '17 02:04 andorardo

@jingcangcang Please see issue tracker policy here.

jart avatar Apr 14 '17 05:04 jart