zericardo / sci-corpus Goto Github PK
View Code? Open in Web Editor NEWScientific corpus manager.
Scientific corpus manager.
Open/Save/Close/Import/Export
What actions should we implement?
We need to provide a
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.
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.
The best place to treat the All category is in container or GUI? Please, give examples, how to treat this.
There are some problems with the delimiters. Perhaps a new method to find delimiters may be necessary.
[[(sec, subs, func), ]] you need to use final.extend not final.append
Make a function to update the sentence and reference values on a specific entry without change the categories.
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.
THis messages appears: [INFO importToMemory] table function already exists
I think its a problem in container.
A good read for how to program correct and clearly: http://legacy.python.org/dev/peps/pep-0008/
Errors found in sentences produce an error that crash the list viewer.
Need to think about
This program will only work with the sqlite3 version or should we be able to choose implementations?
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.
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.
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
I released some problems like:
What did you think?
They werent working with list and string.
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.
We need to implemente the sentence update function.
The user will be able to choose:
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].
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'
I put here, separated to separate those update modes.
In this one we can change the classification of the sentence or category.
Maybe we will need a Dialog.
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.
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.
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.
Now the number of elements in a tuple varies.
If you pass nothing, return all [(section, subsetion, function),...]
If you pass SECTION, return all [(SECTION, subsetion, function),...] or [('', subsetion, function),...]
Not just [(subsetion, function),...]
its not functional
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.
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.
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'
http://blog.codinghorror.com/pick-a-license-any-license/
https://www.gnu.org/licenses/license-list.html
The best one:
http://www.wtfpl.net/
I think that all libraries that we use is under BSD.
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?
The return must be
[(sec, sub sec, func, sent, refe), (....)] or
[(sec, sub sec, func, (sent, refe)), (....)]
because if people put All, in the future, we need to know which sentence is from which category.
I suggest the velocirapitor as this image:
http://en.wikipedia.org/wiki/File:Velociraptor.jpg
We can use this image I guess. The idea is like that http://www.wdc.com/en/products/products.aspx?id=20
Or maybe, a Brasilian one:
http://pt.wikipedia.org/wiki/Ficheiro:Antarctosaurus_dinosaur.svg
We need to implement in this way to avoid problems importing ".xml" and ".csv" files.
Use the function made in Issue #35 to adjust the behavior of the SELECT statments.
I correct...
You need always think if is append or extend to use.
I think we must implement a method where the user can type part of a sentence and the program searches it on DB.
Implement and use the strip check box on sentence view.
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.
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:
As we told about, if we select more than one field it expected that it make a AND not a OR selection.
We need to fix this issue.
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?
In the future, we will able to remember manually sorting in list view. It can make the user task easier?
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.
We need to fix.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.