Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: __init__() got an unexpected keyword argument 'feature_names' #69

Open
nirmal2k opened this issue Sep 27, 2021 · 1 comment

Comments

@nirmal2k
Copy link

I am trying to run query autocomplete. Unable to run the line

args = DetextArg(ftr_ext="cnn", num_filters=50, num_units=64, emb_sim_func=["inner"], # cosine matching function ltr_loss_fn="softmax", # learning-to-rank loss optimizer="bert_adam", # same AdamWeightDecay optimizer as in BERT training learning_rate=0.002, max_len=16, min_len=3, use_deep=True, num_train_steps=300, steps_per_stats=30, steps_per_eval=30, train_batch_size=64, test_batch_size=64, pmetric="mrr@5", vocab_file=vocab_file, feature_names=["label","usr_prefix","doc_suffix"], train_file="train.tfrecord", dev_file="dev.tfrecord", test_file="test.tfrecord", out_dir="output")

@alimahdavihormat
Copy link

It's because of The Version of DeText

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants