Auto Tagging/Categorizing

147 views
Skip to first unread message

Ulli

unread,
Jun 23, 2016, 9:19:00 AM6/23/16
to Mayan EDMS

Hello!

I am currently thinking about using Mayan for all my documents.
It is very important for me that it is not necessary to configure each document I have scanned before it shows up in the EDMS.

My plan is to use a scan2folder function and a EDMS which observes the scan-folder and based on the OCR result and preconfigured expressions of different tags or categories the EDMS sets up the tags and categories.

I found in the docs that everything except auto tagging/categorizing is supported by Mayan?
Is there a way to auto tagging/categorizing the documents like described above?

I hope so!
Regards,
  Ulli

Ulli

unread,
Jul 1, 2016, 2:33:41 AM7/1/16
to Mayan EDMS
Is there really no functionality like this?

Matthias Löblich

unread,
Jul 1, 2016, 3:24:52 AM7/1/16
to Mayan EDMS
Hi Ulli,
I did an extension for mayan which might fit your requirements:

https://gitlab.com/mayan-edms/document_analyzer

be aware at the moment it is not working with the new mayan-version, but I think within the next 3 days I will have it ready.

br
Matthias

Ulli

unread,
Jul 1, 2016, 8:09:01 AM7/1/16
to Mayan EDMS
I did no update to the current mayan version and installed your analyzer but I get the following error:

mayan-edms.py runserver
/home/ulli/venv/local/lib/python2.7/site-packages/mayan/apps/document_analyzer/models.py:20: RemovedInDjango19Warning: Model class document_analyzer.models.Analyzer doesn't declare an explicit app_label and either isn't in an application in INSTALLED_APPS or else was imported before its application was loaded. This will no longer be supported in Django 1.9.
 
class Analyzer(models.Model):

/home/ulli/venv/local/lib/python2.7/site-packages/mayan/apps/document_analyzer/models.py:58: RemovedInDjango19Warning: Model class document_analyzer.models.Result doesn't declare an explicit app_label and either isn't in an application in INSTALLED_APPS or else was imported before its application was loaded. This will no longer be supported in Django 1.9.
 
class Result(models.Model):

/home/ulli/venv/local/lib/python2.7/site-packages/mayan/apps/document_analyzer/models.py:20: RemovedInDjango19Warning: Model class document_analyzer.models.Analyzer doesn't declare an explicit app_label and either isn't in an application in INSTALLED_APPS or else was imported before its application was loaded. This will no longer be supported in Django 1.9.
 
class Analyzer(models.Model):

/home/ulli/venv/local/lib/python2.7/site-packages/mayan/apps/document_analyzer/models.py:58: RemovedInDjango19Warning: Model class document_analyzer.models.Result doesn't declare an explicit app_label and either isn't in an application in INSTALLED_APPS or else was imported before its application was loaded. This will no longer be supported in Django 1.9.
 
class Result(models.Model):

Unhandled exception in thread started by <function wrapper at 0xb4e6c534>
Traceback (most recent call last):
 
File "/home/ulli/venv/local/lib/python2.7/site-packages/django/utils/autoreload.py", line 229, in wrapper
    fn
(*args, **kwargs)
 
File "/home/ulli/venv/local/lib/python2.7/site-packages/django/core/management/commands/runserver.py", line 107, in inner_run
    autoreload
.raise_last_exception()
 
File "/home/ulli/venv/local/lib/python2.7/site-packages/django/utils/autoreload.py", line 252, in raise_last_exception
    six
.reraise(*_exception)
 
File "/home/ulli/venv/local/lib/python2.7/site-packages/django/utils/autoreload.py", line 229, in wrapper
    fn
(*args, **kwargs)
 
File "/home/ulli/venv/local/lib/python2.7/site-packages/django/__init__.py", line 18, in setup
    apps
.populate(settings.INSTALLED_APPS)
 
File "/home/ulli/venv/local/lib/python2.7/site-packages/django/apps/registry.py", line 85, in populate
    app_config
= AppConfig.create(entry)
 
File "/home/ulli/venv/local/lib/python2.7/site-packages/django/apps/config.py", line 112, in create
    mod
= import_module(mod_path)
 
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__
(name)
 
File "/home/ulli/venv/local/lib/python2.7/site-packages/mayan/apps/document_analyzer/apps.py", line 19, in <module>
   
from .tasks import task_do_analyze
 
File "/home/ulli/venv/local/lib/python2.7/site-packages/mayan/apps/document_analyzer/tasks.py", line 8, in <module>
   
from lock_manager import Lock, LockError
ImportError: cannot import name Lock

Matthias Löblich

unread,
Jul 1, 2016, 3:58:26 PM7/1/16
to mayan...@googlegroups.com
Hi Ulli,
the issues releated to django 1.8 are now fixed in my repo:

https://gitlab.com/startmat/document_analyzer/

I merged it also with the changes Roberto did, but I don't know how to send Robero an request that he can merge my changes are also in

https://gitlab.com/mayan-edms/document_analyzer

Feel free to clone from my repo. Feedback is welcome.

@Roberto: Please give me a hint how to send an Pull/merge request within gitlab.

thx & br
Matthias






--

---
You received this message because you are subscribed to a topic in the Google Groups "Mayan EDMS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mayan-edms/QaTqFMJVqXI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mayan-edms+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages