Coder Social home page Coder Social logo

sci-corpus's People

Contributors

dpizetta avatar thmosqueiro avatar tiagocampo avatar zericardo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

liviagabos

sci-corpus's Issues

Internal docs and wiki

We need to provide a

  • Internal documentation: http://sphinx-doc.org/rest.html (I have used another one to provide html page, pdf with latex, but still out of date since 2012)
  • Wiki docs

In this first moment we don't need to provide parameters and returns from functions. Just the initial comment.

The Wiki page should provide simple usage functionality.

Read/Write preferences with a dialog

I still implementing the dialog preferences and its functions to read and write on a file. Almost is done, but I need to check some things.

At this moment you can change your preferences just in memory, when the program is running.

Update a sentence

Make a function to update the sentence and reference values on a specific entry without change the categories.

Blank space at begin/end sections names

These should be equal (dots are just to you see the blank space)
.Abstract.
. Abstract.
. Abstract.
. Abstract .
.Abstract .

You have to remove just at begin/end because qe can have this

.Shows result.

If I treat this on main window I need to replicate 9x, so would be better if you treat this on DB.

When click on table

THis messages appears: [INFO importToMemory] table function already exists

I think its a problem in container.

JSON or sqlite?

This program will only work with the sqlite3 version or should we be able to choose implementations?

Delete Sentence

Please, explain more

    # IT HAS A PROBLEM, IF MORE THEN ONE COLUMn WAS DISPLAYED.
    # But for now its ok. I dont know how to provide just some items.

This is not an issue, this is expected. We can easily correct by creating a deleteSentence function that receives all the sentence information.
# IT HAS ANOTHER PROBLEM: IT DELETES ALL SENTENCES THAT ARE EQUAL
# But, because the user has selected a section, sub section and function
# It was expected that just that sentence that he select.

Tool tip, status tip and whats this

To be an auto guided program we need to provide tool tips, what is this over the GUI. This is simple implemented on QtDesign, you need just write this sentences. So, when the users were passing their mouse over GUI they can read this tips.

Improve list view with separated fields

In list view, for sections, sub sections and functions an separator, as a line, can separate the fields Not Classified and All from others, and those others will be sorted by name.

Example:

Abstract
Introduction
Results


Not Classified
All

DB functions

I released some problems like:

  • If the field starts/ends with blank space it will put into DB, I think that would be better if the function treat this;
  • If you send a blank string I expect that I would be replaced by Not Classified, this will avoid future errors. Did you get it? I mean pass a blank string not passing nothing.

What did you think?

Delete behavior

If one delete a category the correct behavior should be update it to Not Classified.
If one delete a sentence the correct behavior should be uptate it to NULL.

Update and Remove Sentence

We need to implemente the sentence update function.

The user will be able to choose:

  1. edit the sentence/reference.
  2. change the classification of the sentence.

Diplayed text removeQuestion

I notice that the removeQuestion is 'eating' the first and last char from the string. Maybe there's something to do with the command str(who)[1:-1].

Function to join string

Make a function that receives: a string to be repeated, a string that will be a connector, a list of string with some data to include in the end, a number of repetitions,

str1 = 'SELECT subsec FROM corpus WHERE sec=?'
str2 = 'INTERSECT'
str3 = ['Abstract','Conclusion']
n = 2

!!! CHECK if len(str3) == n !!!

if n!=1 (in this case n=2)
I'll expected to receive: 'SELECT subsec FROM corpus WHERE sec=Abstract INTERSECT SELECT subsec FROM corpus WHERE sec=Conclusion'

If n=1:
'SELECT subsec FROM corpus WHERE sec=Abstract'

UpdateSentenceView

Some sentences are not being displayed in the UI, however if you print on the screen they are listed.

What is going on?

One exemple: abstract, contextualization, proeminence should display: Group III nitrides {are widely used} in commercial visible-wavelength optoelectronic devices, {but} materials {issues such as} dislocations, composition fluctuations, and strain {negatively impact} their efficiency but isnt.

If you look in all sentences this is the 10th.

Not Classified as default category

As a defalt category (section, sub sec and function) I think its a good idea include automatically Not Classified in all of that. I think this is related to Issue 33 also : #33
If a user put a new section Abstract you will put Abstract-Not Classified-Not Classified
Because some of that have this key and others no. For me its strange.

Log viewer

A log viewer togged with table view, where the program send messages of its activities. Errors or success are included. We need to implement a signal on main window and container to send messages.

Quit

its not functional

Counting numbers of total fields

I think that was a god idea to provide total number of sections, sub sections ... and sentences for users.

Maybe together if each category or on status bar.

Print pdf files from db

We will need this at the end of the course :)

I found something from StackOverflow: You can convert your JSON to XML using XML class from json.org and then use some example from Apache FOP to construct XSL transformation that will produce you a PDF.

StyleSheet error

Error in style sheet: [Errno 2] Arquivo ou diretório não encontrado: '/home/tiago/Documents/Doutorado/Materias/Escrita/Corpus/corpus/ui/white_theme.sty'

Fix text in pop-up questions

The diplayed text in the pop-up windows have to be fixed.

Is something like this: replace ['Section'] with NewSection? And have to change to: replace Section with NewSection?

Search sentence

I think we must implement a method where the user can type part of a sentence and the program searches it on DB.

We need a project file?

With a project file we will be able to save the current window, save project preferences and something like global information, which means manually ordered list views.

I was thinking about create a zip folder that contains the project file (.scp) sci-corpus project and the .bd together. I do not know if it is a good idea.

Create a function on container to create a new db

We need this because if people doesn't have a db created, it can create. Is like when you import something without anything opened.

This function also will be use to use the:

  • Save As;
  • Import without open a db file;
  • Just create a new file;

Error when Save As a file

It creates the file, but not save anything.

screenshot 2014-05-06 00 29 23

In the screen it maintains the categories and sentences and appears the file path and name. But if you click in Save, show another error:

screenshot 2014-05-06 00 33 59

If you close and try to reopen, it do nothing.

Sentence View

There is to issues.

First, when you add a sentence they only apear in the sentenceview when you perform another action, for instance, add another sentence or change categories.

Second, and more aesthetic, is that the number of rows presented in the setenteceview isnt consistent. I mean, when you select a function with X sentences and then select another function with Y senteces, and Y < X, the number of rows will be X. Did you get it?

Sentences not appear when add - table view

This was corrected, but I put a comment in updateSentenceView...because we need to think how to count sentences without testing if it is NULL... Maybe we can put on container or an option to list in table categories without sentences too.

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.