config.py 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. "path5": "./docs/table_head_doc/title_abnormal.csv",
  31. "path6": "./docs/table_head_doc/title_abnormal_contain.csv",
  32. }}
  33. # 调试
  34. DEBUG = True
  35. # 字段识别模型
  36. FieldServer = {
  37. "a2s_ip": "192.168.3.240:9090",
  38. "topic": "goods_field",
  39. "timeout": 60,
  40. "retry_times": 5,
  41. }
  42. # 组织机构识别模型
  43. RecognitionServer = {
  44. "a2s_ip": "192.168.3.240:9090",
  45. "topic": "recognition_org",
  46. "timeout": 60,
  47. "retry_times": 5,
  48. }
  49. # 产品识别模型
  50. ProductServer = {
  51. "a2s_ip": "192.168.3.240:9090",
  52. "topic": "recognition_goods",
  53. "timeout": 60,
  54. "retry_times": 5,
  55. }
  56. # update_urls_mongodb
  57. ReluMongodb = {
  58. "ip_port": "192.168.3.71:29099",
  59. "user": "",
  60. "password": "",
  61. "db": "re4art",
  62. "col": "quality",
  63. }