Commit Graph

197 Commits (8a516d927e1621eb3e6c11e36a6f45395d65e80e)

Author SHA1 Message Date
J. Fernando Sánchez 8a516d927e Multiple changes in the API, schemas and UI
Check out the CHANGELOG.md file for more information
5 years ago
J. Fernando Sánchez 4ba30304a4 New schema for parameters
* Improve extra requirement handling
* New mechanism to handle parameters beforehand in chained
  calls, and the ability to get help on available parameters in chained
  calls (through `?help`).
* Redefined Analysis, to reflect the new ontology
* Add parameters as an entity in the schema
* Update examples to include analyses and parameters
* Add processing plugins, with an interface similar to analysis plugins
* Update tests
* Avoid duplication in split plugin

Closes #51

Squashed commit of the following:

commit d145a852e7
commit 6a1069780b
commit ca69bddc17
commit aa35e62a27
6 years ago
J. Fernando Sánchez 41aa142ce0 Refactored conversion and postprocessing 6 years ago
J. Fernando Sánchez 318acd5a71 Replace algorithm list with a tuple 6 years ago
J. Fernando Sánchez 748d1a00bd Fix bug in POST 6 years ago
J. Fernando Sánchez a82e4ed440 Fix bug in py3.5 6 years ago
J. Fernando Sánchez c939b095de Fix POST. Closes senpy/senpy#56 6 years ago
J. Fernando Sánchez 6dd4a44924 Make algorithm part of the URI
This also includes a couple of changes URIs to pass the tests with python 3.7

Closes #50
6 years ago
J. Fernando Sánchez 7c7a815d1a Add *responses* to improve mocking 6 years ago
J. Fernando Sánchez 00ffbb3804 Several changes
* Add flag to run tests
* Add ntriples outformat
6 years ago
J. Fernando Sánchez 13cf0c71c5 WIP
* Modify dependency installation logic (avoid installing several times)
* Add encoded URLs for as base/prefix
6 years ago
J. Fernando Sánchez e5662d482e Allow activation fails 6 years ago
J. Fernando Sánchez 61181db199 Fix sentiment140 plugin 6 years ago
J. Fernando Sánchez 83b23dbdf4 UI improvements
* Add option to add multiple plugins
* Improve UI hints for collapsed parameters
* Refactored plugins without requirements
* Hide evaluation tab for the moment. You can see it by adding "?evaluation" to
  the URL.
6 years ago
J. Fernando Sánchez 6832a2816d Change data loading logic. Bugs senpy.testing 6 years ago
J. Fernando Sánchez a964e586d7 Rename senpy.test to senpy.testing to avoid conflicts 6 years ago
J. Fernando Sánchez 1313853788 Several fixes and improvements
* Add Topic model
* Add PDB post-mortem debugging
* Add logger to plugins (`self.log`)
* Add NLTK resource auto-download
* Force installation of requirements even if adding doesn't work
* Add a method to find files in several possible locations. Now the plugin.open
method will try these locations IF the file is to be opened in read mode.
Otherwise only the SENPY_DATA folder will be used (to avoid writing to the
package folder).
6 years ago
J. Fernando Sánchez 697e779767 Fix schema issues and parameter validation 6 years ago
J. Fernando Sánchez 48f5ffafa1 Defer plugin validation to init 6 years ago
J. Fernando Sánchez da4b11e5b5 Fix installation
* Remove '--use-wheel' flag
* Remove pip dependency
* Make GSITK an optional dependency
6 years ago
J. Fernando Sánchez c0aa7ddc3c Add evaluation tests 6 years ago
J. Fernando Sánchez 5e2ada1654 Merge branch 'master' into 44-add-basic-evaluation-with-gsitk 6 years ago
NahcoCP 55c32dcd7c Changed the template and main for supporting evaluation table 6 years ago
NahcoCP 0093bc34d5 Change Playground to support evaluation table view 6 years ago
NahcoCP 67bae9a20d Implementing the evaluation service inside the Senpy api 6 years ago
NahcoCP 551a5cb176 Adding the evaluation method inside the Senpy Context 6 years ago
NahcoCP d6f4cc2dd2 Connecting the Plugin to the evaluation module of GSITK 6 years ago
NahcoCP 4af692091a Adding the evaluation models 6 years ago
NahcoCP ec68ff0b90 Adding all the schemas necessary for convert an evaluation into a JSON-LD context 6 years ago
J. Fernando Sánchez 738da490db Add test to command line 6 years ago
J. Fernando Sánchez d29c42fd2e Log easy and test serializable 6 years ago
J. Fernando Sánchez 23c88d0acc Improve error handling 6 years ago
J. Fernando Sánchez dcaaa591b7 Improve requests patching 6 years ago
J. Fernando Sánchez 15ab5f4c25 Add Entity 6 years ago
J. Fernando Sánchez 92189822d8 Change Box plugin to mimic a sklearn classifier 6 years ago
J. Fernando Sánchez 081078ddd6 Fix pypi
Remove standard aliases in __init__.py
6 years ago
J. Fernando Sánchez 1087692de2 Add sklearn
* Add sklearn example
* Fix test_case
* Add SenpyClientUse docs

a.k.a. The wise men edition
6 years ago
J. Fernando Sánchez 3e2b8baeb2 Last batch of big changes
* Add Box plugin (i.e. black box)
* Add SentimentBox, EmotionBox and MappingMixin
* Refactored CustomDict
6 years ago
J. Fernando Sánchez 21a5a3f201 Macro commit
* Fixed Options for extra_params in UI
* Enhanced meta-programming for models
* Plugins can be imported from a python file if they're named
`senpy_<whatever>.py>` (no need for `.senpy` anymore!)
* Add docstings and tests to most plugins
* Read plugin description from the docstring
* Refactor code to get rid of unnecessary `.senpy`s
* Load models, plugins and utils into the main namespace (see __init__.py)
* Enhanced plugin development/experience with utils (easy_test, easy_serve)
* Fix bug in check_template that wouldn't check objects
* Make model defaults a private variable
* Add option to list loaded plugins in CLI
* Update docs
6 years ago
J. Fernando Sánchez abd401f863 Enhance plugin metaclass
* Change names of plugins to avoid repetitions (we may have to revert this)
* Make subprocess log private
6 years ago
J. Fernando Sánchez bfc588a915 Several fixes
* Refactored BaseModel for efficiency
* Added plugin metaclass to keep track of plugin types
* Moved plugins to examples dir (in a previous commit)
* Simplified validation in parse_params
* Added convenience methods to mock requests in tests
* Changed help schema to use `.valid_parameters` instead of `.parameters`,
which was used in results to show parameters provided by the user.
* Improved UI
    * Added basic parameters
    * Fixed bugs in parameter handling
    * Refactored and cleaned code
6 years ago
J. Fernando Sánchez f93eed2cf5 Fix bug in UI
Extra parameters of the plugins didn't get a box all the time.
6 years ago
J. Fernando Sánchez 0204e0b8e9 Several changes
* Simplified setattr
* Added loading attributes in class
* Added ability to specify failing test cases in plugins
6 years ago
J. Fernando Sánchez aa54d1c9c8 Fix bugs in Web UI parameters
* Fixes #49
* Slightly cleaner javascript code
7 years ago
J. Fernando Sánchez 869c00f709 Merge branch 'split-fix'
Fix #48
7 years ago
militarpancho 55be0e57da Fix #48 7 years ago
J. Fernando Sánchez 778746c5e8 Added data folder configuration
Closes #46
7 years ago
J. Fernando Sánchez 19278d0acd Use the right version of PIP (py2/py3)
Closes senpy/senpy#47
7 years ago
J. Fernando Sánchez e8413fb645 Accept string inputs if no options are available
The javascript code should be cleaned up at some point!
7 years ago
J. Fernando Sánchez 3e3f5555ff Fixed py2 problems and other improvements
We've changed the way plugins are activated, and removed the notion of
deactivated plugins.
Now plugins activate asynchronously.
When calling a plugin, it will be activated if it wasn't, and the call will wait
for the plugin to be fully activated.
7 years ago