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

Implement support for editing features #43

Closed
proycon opened this issue Aug 22, 2016 · 4 comments
Closed

Implement support for editing features #43

proycon opened this issue Aug 22, 2016 · 4 comments
Assignees
Milestone

Comments

@proycon
Copy link
Owner

proycon commented Aug 22, 2016

No description provided.

@proycon proycon self-assigned this Aug 22, 2016
@proycon proycon added this to the v0.7 milestone Oct 13, 2016
proycon added a commit that referenced this issue Oct 26, 2016
…nt directly (refactors #37) + Render features in viewer (start of #43)
proycon added a commit that referenced this issue Oct 26, 2016
proycon added a commit that referenced this issue Oct 26, 2016
… editing features (issue #43) with full support for set definitions (choice lists)
proycon added a commit that referenced this issue Oct 26, 2016
…f the higher order processing into build_parentselector_query()
@proycon proycon added the ready label Oct 27, 2016
@proycon
Copy link
Owner Author

proycon commented Oct 27, 2016

Implemented, but will probably break under correction mode currently

@proycon
Copy link
Owner Author

proycon commented Nov 8, 2016

Feature sets that are predefined and usable as an attribute shortcut don't seem to be propagated from foliadocserve now.

@proycon
Copy link
Owner Author

proycon commented Nov 8, 2016

Works again, but still a (regression?) problem upon editing a feature:

USE proycon/example EDIT feat WHERE subset = "strength" AND class = "heavy"  WITH class "heavy"  FOR ID "WR-P-E-J-0000000001.text.sentiment.1" FORMAT flat RETURN ancestor-focus
  File "/home/proycon/lamachine/lib/python3.5/site-packages/foliadocserve-0.5-py3.5.egg/foliadocserve/foliadocserve.py", line 575, in query
    result =  query(doc,False,self.debug >= 2)
  File "/home/proycon/lamachine/lib/python3.5/site-packages/PyNLPl-1.1.0-py3.5.egg/pynlpl/formats/fql.py", line 1889, in __call__
    focusselection, targetselection = self.action(self, targetselector, debug) #selecting focus elements further constrains the target selection (if any), return values will be lists
  File "/home/proycon/lamachine/lib/python3.5/site-packages/PyNLPl-1.1.0-py3.5.egg/pynlpl/formats/fql.py", line 1665, in __call__
    focusselection.append( target.add(action.focus.Class, **action.assignments) ) #handles span annotation too
  File "/home/proycon/lamachine/lib/python3.5/site-packages/PyNLPl-1.1.0-py3.5.egg/pynlpl/formats/folia.py", line 4088, in add
    return self.append(child, *args, **kwargs)
  File "/home/proycon/lamachine/lib/python3.5/site-packages/PyNLPl-1.1.0-py3.5.egg/pynlpl/formats/folia.py", line 4075, in append
    return super(AbstractSpanAnnotation,self).append(child, *args, **kwargs)
  File "/home/proycon/lamachine/lib/python3.5/site-packages/PyNLPl-1.1.0-py3.5.egg/pynlpl/formats/folia.py", line 1413, in append
    child = Class(self.doc, *args, **kwargs)
  File "/home/proycon/lamachine/lib/python3.5/site-packages/PyNLPl-1.1.0-py3.5.egg/pynlpl/formats/folia.py", line 4003, in __init__
    raise Exception("No subset specified for " + self.__class__.__name__)
[QUERY FAILED] FoLiA Error in proycon/example: [Exception] No subset specified for Feature

proycon added a commit that referenced this issue Nov 17, 2016
@proycon
Copy link
Owner Author

proycon commented Nov 17, 2016

fixed

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

1 participant