-
Notifications
You must be signed in to change notification settings - Fork 1
Client Application
Dana Palcu edited this page Sep 25, 2018
·
12 revisions
It represents the user interface of 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.
- 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 .
-environment variables for the root_url