config.py 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. # 表头识别模型
  2. ai2config = {
  3. "table_field_config": {
  4. "corpus_path": "./docs/table_head_doc/field_label.csv",
  5. "vocab_file": './docs/table_head_doc/table_head_vocab',
  6. "vocab_label": './docs/table_head_doc/table_head_le',
  7. "epochs": 4000,
  8. "lr": 1e-2,
  9. "momentum": .8,
  10. "model_path": './docs/table_head_doc/table_head_clf_model'
  11. }}
  12. amount_config = {
  13. "table_field_config": {
  14. "path": "./docs/table_head_doc/amount_label.csv",
  15. }}
  16. budget_config = {
  17. "table_field_config": {
  18. "path": "./docs/table_head_doc/budget_label.csv",
  19. }}
  20. general_config = {
  21. "table_field_config": {
  22. "path": "./docs/table_head_doc/general_label.csv",
  23. }}
  24. abnormal_config = {
  25. "table_field_config": {
  26. "path1": "./docs/table_head_doc/abnormal_buyer_begin.csv",
  27. "path2": "./docs/table_head_doc/abnormal_buyer_contain.csv",
  28. "path3": "./docs/table_head_doc/abnormal_buyer_end.csv",
  29. "path4": "./docs/table_head_doc/projectcode.csv",
  30. }}
  31. # 调试
  32. DEBUG = True
  33. # 字段识别模型
  34. FieldServer = {
  35. "a2s_ip": "192.168.3.240:9090",
  36. "topic": "goods_field",
  37. "timeout": 60,
  38. "retry_times": 5,
  39. }
  40. # 组织机构识别模型
  41. RecognitionServer = {
  42. "a2s_ip": "192.168.3.240:9090",
  43. "topic": "recognition_org",
  44. "timeout": 60,
  45. "retry_times": 5,
  46. }
  47. # 产品识别模型
  48. ProductServer = {
  49. "a2s_ip": "192.168.3.240:9090",
  50. "topic": "recognition_goods",
  51. "timeout": 60,
  52. "retry_times": 5,
  53. }
  54. # update_urls_mongodb
  55. ReluMongodb = {
  56. "ip_port": "192.168.3.71:29099",
  57. "user": "",
  58. "password": "",
  59. "db": "re4art",
  60. "col": "quality",
  61. }