title: TypeError: (): incompatible function arguments. The following argument types are supported: 1. (self: fasttext_pybind.args, arg0: float) -> None
body: <p>I would like Model training with <code>train.py</code> file, but I keep getting the following error:</p>
  
  <pre><code>setattr(a, k, v)
  TypeError: (): incompatible function arguments. The following argument types are supported:
  1. (self: fasttext_pybind.args, arg0: float) -&gt; None
  
  Invoked with: &lt;fasttext_pybind.args object at 0x7f6bbed0c030&gt;, 
  '/home/van/Download/classification/egs/vntc_fasttext/snapshots/model'
  </code></pre>
  
  <p>This is my code:</p>
  
  <pre><code>import argparse
  import os
  import sys
  from os.path import join, dirname, abspath
  
  import fasttext
  
  cwd = dirname(abspath(__file__))
  sys.path.append(dirname(dirname(cwd)))
  
  parser = argparse.ArgumentParser("train.py")
  parser.add_argument("--train", help="train data path", required=True)
  parser.add_argument("-s", "--serialization-dir", help="directory in which to save the model 
  and its logs",required=True)
  args = parser.parse_args()
  
  train_path = os.path.abspath(join(cwd, args.train))
  serialization_dir = os.path.abspath(join(cwd, args.serialization_dir))
  
  fasttext.train_supervised(train_path, '{}/model'.format(serialization_dir))
  print("Done!!!")
  </code></pre>
  
  <p>Could someone please help me fix this issue?</p>