Closed johnwdubois closed 5 years ago
I changed the previous terminology, replacing the word "span" with "phrase". Spans are used in NLP for a different meaning (e.g. a continuous string), so "phrase" is more consistent with standard linguistic terminology.
Here's how the newWord chunks look. There's a couple problems: when the chunk is too large, it bleeds into the next display column, and just like the newWords they cannot be aligned correctly
It might be better to let the chunk be drawn according to the words that compose it, and let it be sorted and aligned by its first word. Jack
============================== John W. Du Bois Professor of Linguistics University of California, Santa Barbara Santa Barbara, California 93106 USA dubois@ucsb.edu
On Wed, May 22, 2019, 9:46 AM Georgio Klironomos notifications@github.com wrote:
[image: chunkV1] https://user-images.githubusercontent.com/44912030/58139541-fb98b500-7bef-11e9-9497-353eb79e9048.png Here's how the newWord chunks look. There's a couple problems: when the chunk is too large, it bleeds into the next display column, and just like the newWords they cannot be aligned correctly
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/johnwdubois/rezonator/issues/24?email_source=notifications&email_token=AIQ6S75CK26ZVRRA5ARO2I3PWSJVBA5CNFSM4FRTV4VKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODV5SMTY#issuecomment-494609999, or mute the thread https://github.com/notifications/unsubscribe-auth/AIQ6S76D5EIWUNAF4X5VX4LPWSJVBANCNFSM4FRTV4VA .
So Jack, would that be the way that spans used to work? Not inserting a new "word", but drawing the box around the selected words and changing the properties of the first word to act as the chunk's anchor?
Yes, kind of. In a way we need a hybrid solution, because for some purposes we do need to have a new "word", as a node that we can attach features to, and include in links to normal words. But this chunk-word can be somewhat abstract, so for drawing purposes we don't want to use the "insert user word" approach, I think. Just attach the box to certain normal words, which will be drawn according to the normal rules as much as possible.
============================== John W. Du Bois Professor of Linguistics University of California, Santa Barbara Santa Barbara, California 93106 USA dubois@ucsb.edu
On Fri, May 24, 2019, 2:30 AM Georgio Klironomos notifications@github.com wrote:
So Jack, would that be the way that spans used to work? Not inserting a new "word", but drawing the box around the selected words and changing the properties of the first word to act as the chunk's anchor?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/johnwdubois/rezonator/issues/24?email_source=notifications&email_token=AIQ6S7YYU4BHD42F6AC7PBTPW3IFBA5CNFSM4FRTV4VKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWC5Z5I#issuecomment-495312117, or mute the thread https://github.com/notifications/unsubscribe-auth/AIQ6S764OCBL7XM5TKUVUNTPW3IFBANCNFSM4FRTV4VA .
The Chunk/Box function looks promising. Here are some tweaks:
DragDirection
and DragAngle
, as outlined in #222 .
DragDirection
= {down, up, right, left, southeast, southwest, northeast, northwest}
DragAngle = {straight, diagonal}
If DragDirection = {down, up, right, left}, then DragAngle = straight
If DragDirection = {right, left}, then DragHorizontal = 1
If DragDirection = {southeast, southwest, northeast, northwest}, then DragAngle = diagonalChunks no longer create a new word, instead they are designated by a rectangle drawn around the words in the chunk. The rectangle is dynamic in that it can be stretched indefinitely but still contains the words.
Is your feature request related to a problem?
When a user is marking up Track chains or Rez chains, sometimes they want to include a multi-word sequence as a link, not just a Word. A multi-word sequence can be considered a Chunk, Span, or Phrase. Rezonator should make it easy for users to mark an arbitrary sequence of words as a Chunk, in order to include it in a Track chain or Rez chain.
Definitions
Example Here is an example of a several Spans/Chunks created while marking a Track chain (from SBC006). Spans appear in lines 10, 11, 13, and 121. In this example, the sideLink notation (borrowed from Rez chains) is intended to stand in for markup of a Span/Chunk. But in the actual Span/Chunk notation, no SideLinks would appear. Instead, the Span (sequence of words on the same line) would be surrounded by a single bounding rectangle (Plate).
Here is another example. In this case the user would like to mark some Chunks in the midst of creating a Track chain (see the multi-word references to "granola woman" etc. in SBC004, lines 1289, 1291, and 1293):
Describe the solution you'd like The goal is to allow the user to mark an arbitrary set of words as a Span (or Chunk).
SnapToGrid
drag #222):Data structure issues
Additional context
Alternative user input: Shift-Click