GithubHelp home page GithubHelp logo

lextermserver's People

Contributors

dependabot[bot] avatar gliese1337 avatar housleyjk avatar jcelliott avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

nsuitter

lextermserver's Issues

TBX-Basic Import/Export Validation

We need to make sure to validate before importing and after exporting before sending the output to the user. If the export is invalid, we should still send the data but inform the user that something went wrong and the termbase is invalid.

This probably means that we need to move the business logic of validation out of the ValidateView view and into someplace accessible from multiple views.

Josh, I assigned this to you, but feel free to assign it back if you are busy with other things.

TBX-Basic Import

We need to create a routine, probably using lxml to take a TBX-Basic file and extract all of the data that corresponds to lexterm elements and update the database.
Here is a draft routine:

  1. Parse TBX as xml (lxml)
  2. For each term:
    • extract language
    • concept
    • term
    • part of speech (where does this go in lexterm?)
    • definition
    • update database

Terms are connected by concepts in both lexterm and TBX right? This should be relatively easy because TBX and lexterm share the same metamodels.

Serialization format

We should discuss a standard way to serialize LexTerm data for import and export.

Paginate large requests

This isn't an issue yet, but it will probably become one. This would apply to endpoints that return a long list of elements, such as a GET on /api/lex/{lang}/lexemes

TBX-Basic Export

Using lxml we need to export valid TBX. This should probably be first export by language, which means that we would export all of the terms for a given number of languages. Later we can have TBX-Basic where the user can select specific terms to export. So, it's probably best to bear that in mind. If possible, write the code such that we could filter the output by: term, concept, limit (i.e. give me the first 50 terms in language eng), lang, lexicalclass, anymore?

TBX-Basic Export

We need to write a test to make sure that no data is missing from an export.

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.