234 Коммитов

Автор SHA1 Сообщение Дата
Inga Ulusoy
15789379b1
update links (#155)
* Create CONTRIBUTING.md

* Create CITATION.cff

* update links and remove reference to object recognition

* adding orcid to authors in CITATION.cff

---------

Co-authored-by: Petr Andriushchenko <pitandmind@gmail.com>
2023-10-17 08:38:07 +02:00
Petr Andriushchenko
32d1321a1a
fixing the absence of a vqa model (#150)
* fixing the absence of a VQA model
2023-09-26 13:23:49 +02:00
Petr Andriushchenko
a57e67be32
added instructions to README.md (#149)
* added additional instructions to README.md
2023-09-20 11:29:29 +02:00
Petr Andriushchenko
8161164e87
added new models from lavis to ammico summary (#138)
* added new models from LAVIS to ammico summary

* added sequential questions for summary in new models

* fixed initializing dict process in all notebooks

* joining old and new models into one notebook
2023-09-18 13:47:45 +02:00
pre-commit-ci[bot]
5c72f9aae4
[pre-commit.ci] pre-commit autoupdate (#147)
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/psf/black: 23.7.0 → 23.9.1](https://github.com/psf/black/compare/23.7.0...23.9.1)

* added fail-fast: false in CI

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Inga Ulusoy <inga.ulusoy@uni-heidelberg.de>
Co-authored-by: Petr Andriushchenko <pitandmind@gmail.com>
2023-09-18 11:45:50 +02:00
Petr Andriushchenko
a520f48b87
Made translation in test_text more flexible (#148)
* fixed text translation test, made it more flexible

* added clearing cache after pytests to not overload ROM in Linux CI
2023-09-18 10:19:39 +02:00
Inga Ulusoy
fc68010e70 increment release number 2023-09-13 14:38:59 +02:00
Inga Ulusoy
a7484e3a9b
wrapper for input/output, one demo notebook (#146) v0.2.0 2023-09-04 06:41:17 +02:00
Inga Ulusoy
8eb4fca75e
put clean text back in, correct default image data path (#145) 2023-08-31 13:54:51 +02:00
GwydionJon
e120c10d9f
Fix dash layout (#143)
* force_rounding_of_all_colors

* update test

* fixed bug in color analysis

* changed color rounding to seperate loop

* updated to new dash layout using dbc

* removed dash server from test

* added dash version to pyproject.toml

* changed something to get codecov to work

* changed something else to get codecov to work..

* added test_right_output_analysis_text

* fix type in dependencies

* removed test_text from display

---------

Co-authored-by: Inga Ulusoy <inga.ulusoy@uni-heidelberg.de>
2023-08-31 11:00:30 +02:00
GwydionJon
d98a5d3c0e
force_rounding_of_all_colors (#140)
* force_rounding_of_all_colors

* update test

* fixed bug in color analysis

* changed color rounding to seperate loop
2023-08-16 10:05:48 +02:00
Inga Ulusoy
911a43bfad
check for missing keys (#144)
* check for missing keys

* fix code smells
2023-08-15 13:07:41 +02:00
pre-commit-ci[bot]
edffd91960
[pre-commit.ci] pre-commit autoupdate (#141)
updates:
- [github.com/pycqa/flake8: 6.0.0 → 6.1.0](https://github.com/pycqa/flake8/compare/6.0.0...6.1.0)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-08-14 13:06:35 +02:00
pre-commit-ci[bot]
c821c9281c
[pre-commit.ci] pre-commit autoupdate (#139)
updates:
- [github.com/psf/black: 23.3.0 → 23.7.0](https://github.com/psf/black/compare/23.3.0...23.7.0)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-07-24 15:51:51 +02:00
Inga Ulusoy
e11d4c05f4
Update notebooks and add options in display for text model names (#133)
* updated notebooks for the new interface

---------

Co-authored-by: Petr Andriushchenko <pitandmind@gmail.com>
2023-07-12 09:31:58 +02:00
Petr Andriushchenko
009ea3121f
removed identify from analysis_exlorer (#132) 2023-07-07 16:15:11 +02:00
Petr Andriushchenko
4cecd7ea4f
package data fixing (#131)
* added ammico.data to namespace of packagees tool.setuptools

* limited tensorflow version up to 2.12.3 due to the bug https://github.com/huggingface/transformers/issues/23352
2023-07-07 13:58:24 +02:00
Petr Andriushchenko
875b5c5e0e
Macos debugging (#127)
* returned object_tests on macOS

* fixed scikit-learn 1.3.0 bug
2023-07-03 16:18:27 +02:00
Petr Andriushchenko
1914424cf8
Added Windows instruction in README (#128)
* added instructions to the readme.md about installing the package on Windows OS

* fixed 1.3.0 scikit-learn bug
2023-07-03 14:03:09 +02:00
Inga Ulusoy
9f025094a3
Model name passing for summary, sentiment, ner (#125)
* pass model names in class init

* tests for model name and revision number passing

* add exception tests

* simplified selection logic

---------

Co-authored-by: Petr Andriushchenko <pitandmind@gmail.com>
2023-06-29 13:10:13 +02:00
GwydionJon
2a87bc57fd
Provide err msg empty file location (#120)
* added exception for empty file list

* added batching, randomness and multiple file extensions to find_files

* added more default filetypes to find_files

* changed summmary.py logic (#121)

* changed summmary.py logic

* fixing test_summary

* added macos for testing

* fixed_display_test

* fixed docs and exceptions

* added dropout menu for summary

* added new SummaryDetector to AnalysisExplorer

* bug fixing

* code improving

* fixed test_display

* fixed code smells

* reduce tests for macos

* added some tests and exceptions for summary init

* changed CI, runs pytest independently

* exclude test_analysisExplorer from macos in CI

* moved some tests from test_init_summary to test_advanced_init_summary and mark them as long

---------

Co-authored-by: Inga Ulusoy <inga.ulusoy@uni-heidelberg.de>

* fixing coverage report (#126)

* fixed coverage report

---------

Co-authored-by: Petr Andriushchenko <pitandmind@gmail.com>
Co-authored-by: Inga Ulusoy <inga.ulusoy@uni-heidelberg.de>
2023-06-28 08:44:44 +02:00
Petr Andriushchenko
187d3804e9
fixing coverage report (#126)
* fixed coverage report
2023-06-27 10:52:34 +02:00
Petr Andriushchenko
8d8ea52287
changed summmary.py logic (#121)
* changed summmary.py logic

* fixing test_summary

* added macos for testing

* fixed_display_test

* fixed docs and exceptions

* added dropout menu for summary

* added new SummaryDetector to AnalysisExplorer

* bug fixing

* code improving

* fixed test_display

* fixed code smells

* reduce tests for macos

* added some tests and exceptions for summary init

* changed CI, runs pytest independently

* exclude test_analysisExplorer from macos in CI

* moved some tests from test_init_summary to test_advanced_init_summary and mark them as long

---------

Co-authored-by: Inga Ulusoy <inga.ulusoy@uni-heidelberg.de>
2023-06-27 09:19:01 +02:00
Inga Ulusoy
75e9f49370
add color table to package data (#124)
* add color table to package data

* added importlib-resources to puproject.toml

---------

Co-authored-by: Petr Andriushchenko <pitandmind@gmail.com>
2023-06-26 13:34:53 +02:00
GwydionJon
ceec46a91c
round sentiment score (#119)
* round sentiment score

* Update test_text.py

increased assert range
2023-06-23 14:09:10 +02:00
GwydionJon
7d650caaef
added settings dropdown to AnalysisExplorer (#115)
* added settings dropdown to AnalysisExplorer

* added a dropdown menu for ColorDetector

* removed identify keyword from notebooks

* added test_init to test_colors

* include colors in AnalysisExplorer

* add kwarg for colors

* pre-selected options for color scheme

* constrain delta_e_method selection to valid options

* fixed tests in test_display

---------

Co-authored-by: Inga Ulusoy <inga.ulusoy@uni-heidelberg.de>
2023-06-23 13:03:01 +02:00
GwydionJon
1d9e1338ea
Improve colors expression (#80)
* increased dash width

* added new color_analysis notebook

* added colorgram.py to dependencies

* added first iteration of new color_check

* added new version of color analysis

* added webcolors to dependencies

* added colormath

* switched from colormath to colour-science

* made delta_e algorithm user accessible

* remove obsolete notebook

* update docstrings and type hints

* add color analysis module to API doc

* renamed color_expressions to color_analysis

* renamed test

* updated color analysis notebook to adhere to the same style as other notebooks

* updated test for new df orientation

* refactored color analysis to comply with ammico workflow

* updated color tests to comply with new class structure

* added explanation to colors_analysis notebook

* added class doc string

* updated analysis explorer test to include empty image keyword as dash observer

* fix typo and names, docstring and import

* update doc and notebook explanation

* add project url for pypi

---------

Co-authored-by: Inga Ulusoy <inga.ulusoy@uni-heidelberg.de>
2023-06-22 13:58:49 +02:00
Petr Andriushchenko
aedd166d7e
moved notebooks folder to ammico (#95) 2023-06-20 10:31:43 +02:00
Inga Ulusoy
c9422a77ec
cleanup-minor-issues (#91)
* clean up docstrings

* clean up docstrings 2

* temp integration test module

* cleaner text sample to analyse

* remove clean text and spelling corrections

* change ammico exposed interface
2023-06-20 10:31:13 +02:00
Petr Andriushchenko
8ea7903806
Fixing macos compatibility (#92)
* changed salesforce-lavis to fork with MacOS compatibility (release 1.0.2)

* added macos to CI
2023-06-19 11:05:38 +02:00
GwydionJon
44e5a987b1
Improve documentation (#89)
* updated documentation in cropposts

* updated documentation in display

* updated documentation in faces

* added comments to objects.py

* updated utils.py docs

* updated text.py docs

* improve doc display

* fix doc for display and remove redundant variable

* removed documentation from cropposts.py

* removed unused imports

* get rid of ipywidgets dependency

* remove unused imports, improve type hints

* improve doc in utils

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: Inga Ulusoy <inga.ulusoy@uni-heidelberg.de>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-06-14 22:17:20 +02:00
Inga Ulusoy
4628692e95
update post cropping notebook (#75) 2023-06-14 19:46:18 +02:00
Petr Andriushchenko
2e4cd93f78
Merge pull request #88 from ssciwr/windows_comp
Added Windows to CI
2023-06-13 13:20:11 +02:00
Inga Ulusoy
1494811fa9
put download nltk corpora back into ci 2023-06-13 09:44:35 +02:00
Petr Andriushchenko
031b00e250
turn off the test_text_summary on Windows 2023-06-12 16:03:31 +02:00
Petr Andriushchenko
c34958ec1f
turn on the test_text_summary on Windows 2023-06-12 15:44:12 +02:00
Inga Ulusoy
afc851d3c6
do not load textblob nltk corpora 2023-06-12 15:18:58 +02:00
Petr Andriushchenko
e27bb7074a
mark test_PostprocessText as win_skip 2023-06-12 14:54:53 +02:00
Petr Andriushchenko
5437ec1802
mark test_text_ner as win_skip 2023-06-12 14:23:16 +02:00
Petr Andriushchenko
8f7242f1c4
mark test_text_summary as win_skip 2023-06-12 14:02:32 +02:00
Petr Andriushchenko
9bbc8a7c2d
Disabled macos. Skiped summary tests in windows. 2023-06-05 11:56:36 +02:00
Petr Andriushchenko
089608c9fa
Added macos to CI 2023-06-01 16:18:12 +02:00
Petr Andriushchenko
059c059e5d
Added Windows to CI 2023-06-01 15:59:16 +02:00
Inga Ulusoy
125c31b7a6
skip summary if translation failed (#86)
* skip summary if translation failed

* restrict bertopic version
2023-06-01 14:02:06 +02:00
Petr Andriushchenko
5b029b5c8b
Merge pull request #84 from ssciwr/summary_multi_docs
Prepared functions documentation and fixed some code in multimodal search.
2023-05-26 11:22:50 +02:00
Inga Ulusoy
294e9d106a include lavis modules in API documentation 2023-05-25 14:19:05 +02:00
Inga Ulusoy
8041a9c3bb update notebooks for documentation 2023-05-25 11:48:06 +02:00
Inga Ulusoy
dac45272b5 correct expected type to list 2023-05-25 10:51:39 +02:00
Petr Andriushchenko
3b1f5717d1
fixed test_multimodal_search 2023-05-24 13:43:59 +02:00
Petr Andriushchenko
0452d6607f
changed multimodal_search and corresponded notebook 2023-05-24 13:30:02 +02:00