Coder Social home page Coder Social logo

crispengari / machine-translator Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 1.0 774 KB

This is a graphql api build using ariadne python that serves a graphql-endpoint at port 3002 to perform language translation and identification using deep learning in python pytorch.

License: Apache License 2.0

Python 100.00%
pytorch machine-translation torchtext ariadne graphql python deep-learning machine-learning artificial-intelligence

machine-translator's People

Contributors

crispengari avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

paulterinho

machine-translator's Issues

Problem running the project

Hi Crispen,

I'm getting an error about a missing JSON file for vocab (machine-translator/translation/models/eng-deu/static/src_vocab.json). Any chance you can see what I'm doing wrong? Am I missing a file?

Here's what I have:

 ~/Doc/p/machine-translator  on main ?1  python main.py                                                                       ✔  machine-translator   2.6.3   at 16:14:49 
 ✅ LOADING TOKENIZERS

 ✅ LOADING TOKENIZERS DONE!

 ✅ LOADING TRANSLATION MODELS

Traceback (most recent call last):
  File "/Users/manolo/Documents/python/machine-translator/main.py", line 22, in <module>
    from resolvers.mutations import mutation
  File "/Users/manolo/Documents/python/machine-translator/resolvers/mutations/__init__.py", line 2, in <module>
    from translation import getFunctionParams, translate_sentence, EOS_TOKEN, UNK_TOKEN, device, meta
  File "/Users/manolo/Documents/python/machine-translator/translation/__init__.py", line 88, in <module>
    DE_DE_DICT, DE_EN_DICT = createDictMappings('eng-deu')
  File "/Users/manolo/Documents/python/machine-translator/translation/__init__.py", line 59, in createDictMappings
    with open(src_json_path, 'r') as src, open(trg_json_path, 'r') as trg:
FileNotFoundError: [Errno 2] No such file or directory: '/Users/manolo/Documents/python/machine-translator/translation/models/eng-deu/static/src_vocab.json'


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.