UI Class and Code Writing Code
Realizing that I need more modular control over giving the user access to back-end variables, I worked on splitting up the interface code into its own PHP class and opening up some new options in the UI for the user to tweak. The new UI class, though basic by template standards, makes it easy to remember user preferences between subsequent runs, and to add and remove interface elements as needed.
Currently the user has control over:
- using rank-ordered or absolute occurrence weighting for the input document
- what percent of terms activated by the input document are passed along to calculate SEP entry activations
Inspired by the newfound ease of UI modifications, I also wrote some PHP that dynamically writes some JavaScript to display the resulting SEP entry activations in a nice bar graph using Google’s Charts and Graphs API, giving a better representation of the relative activations of the SEP entries.
leave a comment