brmson / yodaqa

A Question Answering system built on top of the Apache UIMA framework.
http://ailao.eu/yodaqa
Other
619 stars 205 forks source link

Url Management Refactor #70

Open bmzhao opened 7 years ago

bmzhao commented 7 years ago

URL Manager is now a singleton object rather than a class with static members All URL related classes have been refactored into package cz.brmlab.yodaqa.provider.url

URL sets are now stored in dict map json object instead of a 2D array.

All URLs have a key associated with them located in cz.brmlab.yodaqa.provider.url.UrlConstants, where the constant acts as both the System.property override (the CLI -D flag) and the key in the json dict map. This also keeps the set of urls easy to extend w/o breaking existing functionality, as you can add new urls into the json dict map, and just add a new constant in the UrlConstants class that any new classes can depend on.