Skip to content

Client Application

Dana Palcu edited this page Sep 25, 2018 · 12 revisions

It represents the user interface of the "Backbone" application. The Backbone Application

The client application is composed of 2 files:

  • client_app.py: this file contains the following classes:

    • ClientApp - represents a controller of all other views.
    • MainView - this class represents a view used to access all the functionality of the application.
    • UploadFileView - this class represents a view used for uploading files by the user. The user can upload the following file:
      • two input datasets - the first dataset is mandatory and the second dataset is optional.
      • configuration file
      • training file (optional)
      • settings file (optional)
    • RedirectOutputText - this class is used for redirecting the stdout to the views
    • TrainingFileView - this class represents a view used for creating the training file. After the training file was created it is uploaded automatically to the server.
    • ResultsView - this class is used for viewing the results queried from the database. You can choose to query results for companies by legal_name and thoroughfare.
  • console_label.py : this file contains one class:

    • ConsoleLabel - this class provides necessary functionalities for creating the training file. It sends to the user a pair and receives back an input from the user which represents the label of that pair. After that, the pair is assigned to an instantiate variable (labeled_examples) depending on its label. This variable represents a dictionary where the keys are categories: "match" - the examples in the pair match and "distinct" - the examples in the pair doesn't match. Also, this class creates the training file in the JSON format using this instantiate variable .

Notes

  • While the algorithm is running you cannot do other tasks regarding the application.
  • Creating the training files requires two tasks: sending a message to the server to create the uncertain pairs file and getting this file from the server
  • The application provides the functionality of working with environment variables. In case they are not specified then the localhost it will be used.
Clone this wiki locally