CatDan Dev

UI Class and Code Writing Code

Posted in dev by gwyant on March 21, 2010

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.

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.