Giter VIP home page Giter VIP logo

macc's Introduction

MACC

Descrição teórica:

O MACC (Machado de Assis – Corpus & Catálogo) é fruto de um projeto de mestrado da discente Ursula Puello Sydio, pelo Programa de Pós-Graduação em Letras Estrangeiras e Tradução do Departamento de Letras Modernas da Faculdade de Filosofia, Letras e Ciências Humanas, da Universidade de São Paulo, sob a supervisão da Orientadora: Profa. Dra. Luciana Carvalho Fonseca. É um website dedicado a criar uma ferramenta para auxiliar a comunidade de pesquisadores e profissionais das áreas de tradução, literatura e linguística.

O Catálogo reúne as traduções publicadas em língua inglesa do autor Machado de Assis em um catálogo atualizado e com informações relevantes como ano de publicação e tradutores da obra.

O Corpus paralelo permite que tradutores e pesquisadores comparem como diferentes versões traduziram termos e trechos específicos da obra machadiana. É um corpus paralelo de porte médio-grande com 2.105.695 palavras. Mais especificamente, dentro do corpus do MACC, o subcorpus de romances tem 1.150.161 palavras e o subcorpus de contos tem 955.534.

Descrição do website:

Um website desenvolvido em Django com duas aplicações escritas em python 3.10 que rodam busca em um banco de dados em PostgreSQL. A primeira aplicação realiza buscas no catálogo de traduções de Machado de Assis. A segunda realiza buscas por termos no corpus paralelo.

Funcionalidades

  • 1- Funcionalidades do Catálogo do MACC

  • Funcionalidade 1: Uma lista cronológica das obras, ao clicar em um item, o usuário acessa uma página com uma descrição da obra.

  • Funcionalidade 2: Realizar busca (por título ou gênero literário) no catálogo de traduções a partir das obras em português.

  • Funcionalidade 3: Realizar busca (por título, ano, gênero literário ou país) no catálogo de traduções a partir das obras em inglês.

  • 2- Funcionalidades do Corpus do MACC

  • Funcionalidade:

Busca de termo no corpus de acordo com os parâmetros:

  • idioma (português ou inglês)

  • Busca ampla (contendo parte do termo);Busca exata (igual a); Início (começando com); Final(terminando com)

  • 3- Funcionalidades de Cadastro Realizar cadastro dos usuários para acessar o Corpus

Deploy:

cp .pg.env.sample .pg.env
cp .env.sample .env
python manage.py collectstatic
python manage.py migrate
python manage.py runserver

Generate secret key:

python3 -c 'from django.core.management.utils import get_random_secret_key; print(get_random_secret_key())'

Create a first user:

python manage.py createsuperuser

macc's People

Contributors

alinespereira avatar ricardfo avatar thiagogomesverissimo avatar ursulaps avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

macc's Issues

Erro na migrate

Traceback (most recent call last):
  File "/home/thiago/temp/macc/venv/lib/python3.10/site-packages/django/db/backends/utils.py", line 89, in _execute
    return self.cursor.execute(sql, params)
psycopg2.errors.UndefinedTable: relation "corpus_place" does not exist
LINE 1: ...s_place"."country") "corpus_place"."country" FROM "corpus_pl...
                                                             ^


The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/thiago/temp/macc/manage.py", line 35, in <module>
    main()
  File "/home/thiago/temp/macc/manage.py", line 31, in main
    execute_from_command_line(sys.argv)
  File "/home/thiago/temp/macc/venv/lib/python3.10/site-packages/django/core/management/__init__.py", line 446, in execute_from_command_line
    utility.execute()
  File "/home/thiago/temp/macc/venv/lib/python3.10/site-packages/django/core/management/__init__.py", line 440, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/home/thiago/temp/macc/venv/lib/python3.10/site-packages/django/core/management/base.py", line 402, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/home/thiago/temp/macc/venv/lib/python3.10/site-packages/django/core/management/base.py", line 448, in execute
    output = self.handle(*args, **options)
  File "/home/thiago/temp/macc/venv/lib/python3.10/site-packages/django/core/management/base.py", line 96, in wrapped
    res = handle_func(*args, **kwargs)
  File "/home/thiago/temp/macc/venv/lib/python3.10/site-packages/django/core/management/commands/migrate.py", line 97, in handle
    self.check(databases=[database])
  File "/home/thiago/temp/macc/venv/lib/python3.10/site-packages/django/core/management/base.py", line 475, in check
    all_issues = checks.run_checks(
  File "/home/thiago/temp/macc/venv/lib/python3.10/site-packages/django/core/checks/registry.py", line 88, in run_checks
    new_errors = check(app_configs=app_configs, databases=databases)
  File "/home/thiago/temp/macc/venv/lib/python3.10/site-packages/django/core/checks/urls.py", line 14, in check_url_config
    return check_resolver(resolver)
  File "/home/thiago/temp/macc/venv/lib/python3.10/site-packages/django/core/checks/urls.py", line 24, in check_resolver
    return check_method()
  File "/home/thiago/temp/macc/venv/lib/python3.10/site-packages/django/urls/resolvers.py", line 494, in check
    for pattern in self.url_patterns:
  File "/home/thiago/temp/macc/venv/lib/python3.10/site-packages/django/utils/functional.py", line 57, in __get__
    res = instance.__dict__[self.name] = self.func(instance)
  File "/home/thiago/temp/macc/venv/lib/python3.10/site-packages/django/urls/resolvers.py", line 715, in url_patterns
    patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
  File "/home/thiago/temp/macc/venv/lib/python3.10/site-packages/django/utils/functional.py", line 57, in __get__
    res = instance.__dict__[self.name] = self.func(instance)
  File "/home/thiago/temp/macc/venv/lib/python3.10/site-packages/django/urls/resolvers.py", line 708, in urlconf_module
    return import_module(self.urlconf_name)
  File "/home/thiago/.pyenv/versions/3.10.9/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/home/thiago/temp/macc/macc/urls.py", line 27, in <module>
    path('catalogue/', include('catalogue.urls', namespace='catalogue')),
  File "/home/thiago/temp/macc/venv/lib/python3.10/site-packages/django/urls/conf.py", line 38, in include
    urlconf_module = import_module(urlconf_module)
  File "/home/thiago/.pyenv/versions/3.10.9/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/home/thiago/temp/macc/catalogue/urls.py", line 3, in <module>
    from .views import show, timeline, search_english, search_portuguese
  File "/home/thiago/temp/macc/catalogue/views.py", line 6, in <module>
    from catalogue.forms import SearchEnglishForm, SearchPortugueseForm
  File "/home/thiago/temp/macc/catalogue/forms.py", line 7, in <module>
    class SearchEnglishForm(forms.Form):
  File "/home/thiago/temp/macc/catalogue/forms.py", line 42, in SearchEnglishForm
    choices=list(map(
  File "/home/thiago/temp/macc/venv/lib/python3.10/site-packages/django/db/models/query.py", line 394, in __iter__
    self._fetch_all()
  File "/home/thiago/temp/macc/venv/lib/python3.10/site-packages/django/db/models/query.py", line 1867, in _fetch_all
    self._result_cache = list(self._iterable_class(self))
  File "/home/thiago/temp/macc/venv/lib/python3.10/site-packages/django/db/models/query.py", line 242, in __iter__
    return compiler.results_iter(
  File "/home/thiago/temp/macc/venv/lib/python3.10/site-packages/django/db/models/sql/compiler.py", line 1349, in results_iter
    results = self.execute_sql(
  File "/home/thiago/temp/macc/venv/lib/python3.10/site-packages/django/db/models/sql/compiler.py", line 1398, in execute_sql
    cursor.execute(sql, params)
  File "/home/thiago/temp/macc/venv/lib/python3.10/site-packages/django/db/backends/utils.py", line 67, in execute
    return self._execute_with_wrappers(
  File "/home/thiago/temp/macc/venv/lib/python3.10/site-packages/django/db/backends/utils.py", line 80, in _execute_with_wrappers
    return executor(sql, params, many, context)
  File "/home/thiago/temp/macc/venv/lib/python3.10/site-packages/django/db/backends/utils.py", line 84, in _execute
    with self.db.wrap_database_errors:
  File "/home/thiago/temp/macc/venv/lib/python3.10/site-packages/django/db/utils.py", line 91, in __exit__
    raise dj_exc_value.with_traceback(traceback) from exc_value
  File "/home/thiago/temp/macc/venv/lib/python3.10/site-packages/django/db/backends/utils.py", line 89, in _execute
    return self.cursor.execute(sql, params)
django.db.utils.ProgrammingError: relation "corpus_place" does not exist
LINE 1: ...s_place"."country") "corpus_place"."country" FROM "corpus_pl...
                                                             ^

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.