-
Notifications
You must be signed in to change notification settings - Fork 4
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
Network Analysis Discussion: Bimodal and Directed #54
Comments
@spadafour @ebeshero Okay, this is what I have so far. Do I need to add the attribute columns? |
can view the output here |
@spadafour Also while I was working on this I thought of another thing that we might try to use cytoscape for and it seems a bit closer to what is being done on the Decameron project and therefore the assignment page: my idea is to grab all of the placeNames type locRef and type address that are in a single file. My thinking on this is that if we can't get an actual amp in order or maybe as a precursor to a map this visualization would give use the grouping of places mentioned in a single article and likely near one another. Flaws in this is frequently Nelson notes the places that the people she interviews mention so workingGirl addresses or places they mention. A possible way to eliminate some of those flaws and stick close to what I was thinking in grabbing the places near each other based on article grouping would be to grab the placeNames without the said element as an ancestor. Thoughts? Want to give writing that query a try since I have this other visualization query (regarding grammar) pretty much worked out? |
@spadafour or continue with what I have here and try to get this so that we get the attributes @ebeshero discusses above and distinct-values so we aren't getting the repeated sets of words |
Becca and I have been working on this since class and all parts are working individually to do what we want ; however, when we put it all together in the string-join and to output it to a .tsv we are getting an error. @ebeshero Could you help us figure this out? When I come back from class at 4 we would like to work out a corrected cytoscape network, before beginning some more mapping work. Thanks! You can find this exact query in Becca's exide folder (rParker) and it is titled nelsonGrammar. |
@spadafour @ebeshero @ghbondar any thoughts why we are getting an issue now? |
I was thinking one way to maybe fix it would be instead to take the whole thing from the nouns which sometimes fall as multiples for each poss ... so the single thing in the many would be noun in nouns and then we would have to find the associated poss for each. I am not sure that is what this error actually means though. I would have thought that even the way we are doing it now it would just cause a repeated poss when multiple nouns appear, but the error is a cardinality issue so maybe it is this. @ebeshero @spadafour @ghbondar @nlottig94 thoughts? |
@ebeshero this is the issue I was trying to explain after capstone today. |
@spadafour and @RJP43 Sorry for the delay! I'm on it now... |
Any updates since you were working on this??? Sorry--I've been buried under Lit Capstone drafts since yesterday! |
No in the same situation I didn't try what I was thinking in my last comment because I'm buried in my own drafting and I wasn't gonna get caught up on it if it looks like that isn't actually what is causing the error. Thanks for having a look! |
@RJP43 @spadafour Well, I corrected something bizarre and not right in the Now, I've isolated the problem to this part, and I can already see the problem: You're not writing if (condition = this) then (condition = this) instead of if (condition = this) then output something Can you spot the error in the code yourself now? (it's oddly similar to if statement issues in JavaScript, except that we use a single
|
So, here's how I corrected
Now, I think you can do something similar to correct |
@ebeshero that correction for So to clarify further --
and only 53 returns, which is far from the actual number of poss words Our code from above works and gets us all 694 poss words from all the files getting us a list like this:
If you run the code we had (from above) as individual pieces you can see we are correctly getting each of the pieces and we ran queries prior to make sure we are catching all of each type of word know that there are 691 phrases with 694 poss words and ~722 associated nouns. The issue we are getting is when we put them together and I am still thinking it must be a cardinality issue. I am going to try and reverse what we find first to see if it will work. |
No that didn't work either now I am getting the 722 nouns for
I think the issue is that sometimes there are more than one poss words in a phrase for a single noun and sometimes there are more than one nouns in a phrase for a single poss word, and I am not sure that we are grabbing those instances correctly. What we would want is that when one of those things are repeated each of the words come out with the other word(s) it is paired with in the |
@ebeshero @spadafour thoughts to fix? |
@RJP43 @spadafour OK--I see what I mistook before as a second test for equivalence in your then statements was actually an |
@RJP43 @spadafour if you have 722 associated nouns, you need to have 722 lines of output. I think you fix this with a new "for loop" to generate a line for each associated noun. |
aha! yes! |
Thank you! @ebeshero @spadafour here is the link http://dxcvm05.psc.edu:8080/exist/rest/db/Nelson/nelsonGrammarOutput.tsv and its working |
@RJP43 Huzzah!! Success. I'm glad you figured it out--and I'm sorry I had trouble reading those complicated if then statements earlier! ;-) |
It's understandable they took us a while to figure out too. |
I'm skimming through your TSV now, and I think my favorite lines are:
I think that could be a T-shirt design, too...too bad we already made a batch of shirts! ;-) Maybe they can made out of "grimy cotton"! On an unrelated note, check Courseweb for your Theory Exam score, and make sure I give that back to you (and Amanda and Megan) tomorrow! |
@spadafour so I ordered this list by our $possValue to group all of the like things into sections and what I am noticing is we should probably go back through some of the ones that are pooping up still as pronouns and verify that they aren't just missing
We can discuss this in class. |
@ebeshero here is one of my favorite lines:
|
Ughhhh, gross! Lol! 👍 |
@RJP43 and @spadafour Rob and I were discussing your ideas for plotting a network analysis from CitySlaveGirls. First of all, just to get your feet wet:
Source-Node: An agent or person (from the "archetypes" via the pronouns/possessive nouns)
Shared-Interaction: the active grammatical relationships (from the "segs" markup)
Target-Node: the object (whether a material object or even a person or group of people being objectified!)
Hope that makes sense, and I'm eager to see how your network experiment comes out!
The text was updated successfully, but these errors were encountered: