Commit Graph

89 Commits (b33a70620b4e9be412d2795df8d486c927f1fec6)

Author SHA1 Message Date
J. Fernando Sánchez 00da75153a Change conversion to Euclidean distance
* Added neutral point (if present)

Closes !gsi-upm/senpy#37 (Ian's)
7 years ago
drevicko 6b843a4384 fixes typo in code 7 years ago
drevicko 65d6e47513 Implements Fernando's suggestion in #31
I've added a neutral point definition (in the converters senpy file) as used in pull request #29
7 years ago
drevicko 8d56a0b630 fixes #31
I've used euclidean metric instead of taxicab as I feel it makes more sense (taxicab has bizzare unintuitive effects for points far from the centroids).
7 years ago
drevicko e7ac6e66b0 update _forward_conversion docstring + minor edits 7 years ago
J. Fernando Sánchez 0f89b92457 Fixed pickling error in py2.7 7 years ago
J. Fernando Sánchez ea91e3e4a4 Add an option to force the load of shelf plugins
Closes gsi-upm/senpy#34
7 years ago
Ian Wood f76b777b9f don't fail if shelf pickle file broken 7 years ago
drevicko dcc965ea63 removed superfluous 'neutral' centroid
Neutral is included as an 'origin' field. This is partly because emoml has no vocab for "Neutral" in dimensional models.
7 years ago
drevicko 400f647b7b removed unneccessary defaultdict import 7 years ago
Ian Wood ec1a2ff5f9 added 'origin' to VAD representation, incorporated into weighed sum for Cat->VAD conversion 7 years ago
Ian Wood 1a9dd07f7e Merge branch 'master' 0.8.7 into patch-6 7 years ago
Ian Wood b80b0c7947 used more specific exception specifier (KeyError) 7 years ago
Ian Wood 1ca6ec52fd fixed weighted average, no explicit treatment of 'neutral' 7 years ago
J. Fernando Sánchez e0b4c76238 Add plugin method to client
Closes #28
7 years ago
drevicko 53138e6942 Estimate VAD by weighted average
Does a weighted average of centroids.

If intensity sums to zero for a category, a 'neutral' category is used or 0 if it's not present. I'm not 100% sure this is the best approach, and the name of the "neutral" category perhaps should use some convention?

Note that if there are no categories present, then no VAD (or other dimensional) estimate is returned. It may be better to use the neutral centroid if it's present in this case also.
7 years ago
J. Fernando Sánchez cc298742ec Merge branch '17-...' into 0.8.x 7 years ago
J. Fernando Sánchez 603e086606 Fix list of plugins
Closes #17
7 years ago
J. Fernando Sánchez a8614bab0c Accept plugin pipelines
Closes #15
7 years ago
J. Fernando Sánchez c9e6d78183 Fixed alises, added PAD and FSRE
Closes #13
7 years ago
J. Fernando Sánchez 1a582c0843 Filter conversion plugins
Closes #12

* Shows only analysis plugins by default on /api/plugins
* Adds a plugin_type parameter to get other types of plugins
* default_plugin chosen from analysis plugins
7 years ago
J. Fernando Sánchez 2288b04c92 Remove iteritems for py2/3 compatibility 7 years ago
J. Fernando Sánchez 97bd245dfc Changed data directory 7 years ago
J. Fernando Sánchez d8b59d06a4 Converted Ekman2VAD to centroids
* Changed the way modules are imported -> we can now use dotted
  notation (e.g. senpy.plugins.conversion.centroids)
* Refactored ekman2vad's plugin -> generic centroids
* Added some basic tests
7 years ago
J. Fernando Sánchez 453b9f3257 Fixed bugs in Ekman2VAD 7 years ago
J. Fernando Sánchez ba2e18125c Deployment changes
* Docker all the things!
* Make all the things!
* Fixed version.sh
7 years ago
J. Fernando Sánchez 9f6a6f5ecd Loads of changes!
* Added conversion plugins (API might change!)
* Added conversion to the analysis pipeline
* Changed behaviour of --default-plugins (it adds conversion plugins regardless)
* Added emotionModel [sic] and emotionConversion models

//TODO add conversion tests
//TODO add conversion to docs
7 years ago
J. Fernando Sánchez db30257373 Flake8, Semver, Pre-commit
* Added pre-commit: http://pre-commit.com
* Fixed flake8 errors
* Added flake8 pre-commit hooks
* Added pre-commit to Makefile
* Changed VERSION numbering
* Changed versioning to match PEP-0440
8 years ago
J. Fernando Sánchez 7fd69cc690 YAPFed 8 years ago
J. Fernando Sánchez b8339e397b Improved request handling
Also:
 * Shelve -> Pickle to avoid weird db problems
 * Serving schemas and contexts
8 years ago
J. Fernando Sánchez 14c9f61864 Python 3 compatible
There are also some slight changes to the JSON schemas and the use of
JSON-LD.
8 years ago
J. Fernando Sánchez b0eb2e0628 Fixed error with Sentiment140 9 years ago
J. Fernando Sánchez 7c2e0ddec7 Added plugins by default and monkey patching
Fixes #2
9 years ago
J. Fernando Sánchez eaf65f0c6b First tests 10 years ago
J. Fernando Sánchez ff8d12074b Improved plugins (reload, imp) 10 years ago
J. Fernando Sánchez bdf1992775 Fixed plugins 10 years ago
J. Fernando Sánchez e06fc2e671 V 0.2.2 - Better plugins 10 years ago
J. Fernando Sánchez 8405e5deef Added plugin architecture 10 years ago
J. Fernando Sánchez 680f94a4fb First version for PyPi 10 years ago