Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return for container.listSentence must have sec. sub sec. and func #11

Closed
dpizetta opened this issue Apr 24, 2014 · 2 comments
Closed
Assignees
Milestone

Comments

@dpizetta
Copy link
Collaborator

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.

@tiagocampo tiagocampo self-assigned this Apr 25, 2014
@tiagocampo
Copy link
Collaborator

Make one function to return all the information in a list of tuples!

tiagocampo added a commit that referenced this issue Apr 25, 2014
   listCategories now return a list of tuples
      -> if you pass nothing it wil return a list of tuples
             [(sec, subsec, func), ...]
      -> if you pass section it will return a list of tuples
             [(subsec, func), ...] related to section
      -> if you pass section and subsection it will return
            a list of tuples [(func, ), ...] related to
            section and subsection

   listSentences now return a list of tuples
      -> if you pass nothing it will return a list of tuples of all
             [(sec, subsec, func, sent, ref), ...]
      -> if you pass section it will return a list of tuples of all
             [(sec, subsec, func, sent, ref), ...] where sec=section
      -> if you pass section and subsection it will return a list of
              tuples of all [(sec, subsec, func, sent, ref), ...] where
              sec=section and subsec=subsection
      -> if you pass section, subsection and function it will return
              a list of tuples of all [(sec, subsec, func, sent, ref), ...]
              where sec=section and subsec=subsection and func=function

    remove function now updates entries properly, i.e., dont remove. Instead
     it will update the entry to Not Classified or NULL

    listAll function added. It returns a list of tuples of all
     [(sec, subsec, func, phrase, ref), ...]

    open, close, save, saveAs is functional.
@tiagocampo tiagocampo added this to the version_1.0 milestone Apr 25, 2014
@dpizetta dpizetta reopened this Apr 27, 2014
@tiagocampo
Copy link
Collaborator

why?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants