René's URL Explorer Experiment


Title: node.shift_after_node() does not update enhanced dependencies · Issue #95 · udapi/udapi-python · GitHub

Open Graph Title: node.shift_after_node() does not update enhanced dependencies · Issue #95 · udapi/udapi-python

X Title: node.shift_after_node() does not update enhanced dependencies · Issue #95 · udapi/udapi-python

Description: I have the following code to fix tokenization issues in Spanish AnCora (UniversalDependencies/UD_Spanish-AnCora#6): if re.search(r'\w[¡!]$', node.form): # Separate the punctuation and attach it to the rest. punct = node.create_child() pu...

Open Graph Description: I have the following code to fix tokenization issues in Spanish AnCora (UniversalDependencies/UD_Spanish-AnCora#6): if re.search(r'\w[¡!]$', node.form): # Separate the punctuation and attach it to ...

X Description: I have the following code to fix tokenization issues in Spanish AnCora (UniversalDependencies/UD_Spanish-AnCora#6): if re.search(r'\w[¡!]$', node.form): # Separate the punctuation and attac...

Opengraph URL: https://github.com/udapi/udapi-python/issues/95

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"node.shift_after_node() does not update enhanced dependencies","articleBody":"I have the following code to fix tokenization issues in Spanish AnCora (https://github.com/UniversalDependencies/UD_Spanish-AnCora/issues/6):\r\n\r\n\u003cpre\u003e\r\n        if re.search(r'\\w[¡!]$', node.form):\r\n            # Separate the punctuation and attach it to the rest.\r\n            punct = node.create_child()\r\n            punct.shift_after_node(node)\r\n            punct.form = node.form[-1:]\r\n            node.form = node.form[:-1]\r\n            punct.lemma = punct.form\r\n            punct.upos = 'PUNCT'\r\n            punct.xpos = 'faa' if punct.form == '¡' else 'fat'\r\n            punct.feats['PunctType'] = 'Excl'\r\n            punct.feats['PunctSide'] = 'Ini' if punct.form == '¡' else 'Fin'\r\n            punct.misc['SpaceAfter'] = node.misc['SpaceAfter']\r\n            node.misc['SpaceAfter'] = 'No'\r\n            punct.deprel = 'punct'\r\n\u003c/pre\u003e\r\n\r\nThe method `shift_after_node()` correctly updates ids and basic heads that are after the new position of the shifted node. Unfortunately it fails to also update the enhanced heads when enhanced representation is present. Hence the following source\r\n\r\n\u003cpre\u003e\r\n-19     Yahoo!  Yahoo!  PROPN   np0000o _       16      appos   16:appos        ClusterId=CESS-CAST-A-20000503-1687-s5.sn.51|ClusterType=Spec.organization|MentionSpan=19\r\n-20     con     con     ADP     sps00   _       21      case    21:case _\r\n-21     intenciones     intención       NOUN    ncfp000 Gender=Fem|Number=Plur  8       obl     8:obl   ClusterId=CESS-CAST-A-20000503-1687-s5.sn.57|ClusterType=Gen|MentionSpan=21-22\r\n\u003c/pre\u003e\r\n\r\nresults in the following (note the mismatch in the parent of the preposition _con_):\r\n\r\n\u003cpre\u003e\r\n+19     Yahoo   Yahoo!  PROPN   np0000o _       16      appos   16:appos        ClusterId=CESS-CAST-A-20000503-1687-s5.sn.51|ClusterType=Spec.organization|MentionSpan=19|SpaceAfter=No\r\n+20     !       !       PUNCT   fat     PunctSide=Fin|PunctType=Excl    19      punct   _       _\r\n+21     con     con     ADP     sps00   _       22      case    21:case _\r\n+22     intenciones     intención       NOUN    ncfp000 Gender=Fem|Number=Plur  8       obl     8:obl   ClusterId=CESS-CAST-A-20000503-1687-s5.sn.57|ClusterType=Gen|MentionSpan=21-22\r\n\u003c/pre\u003e\r\n\r\nIt just occurred to me that the `MentionSpan` would also need updating but for that one would probably need to activate the CorefUD sub-API first?","author":{"url":"https://github.com/dan-zeman","@type":"Person","name":"dan-zeman"},"datePublished":"2021-10-29T18:49:50.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/95/udapi-python/issues/95"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:14bf75d9-9037-5d68-e2a5-53870b608a09
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB642:35E3DA:47C1842:6056792:696DFC28
html-safe-nonce707a93dcbd808e9287b2a39aef44359e9c41f3a3d0e1a79e1d7a3dac634fa32d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNjQyOjM1RTNEQTo0N0MxODQyOjYwNTY3OTI6Njk2REZDMjgiLCJ2aXNpdG9yX2lkIjoiNzQwMTk0OTcxMDU5NjgzMjI5NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmaceba86b9cb786d8ac898b96fcdfa14a199240ee9c3ef0a3d5f95dfb2a5e6d1def
hovercard-subject-tagissue:1039841307
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/udapi/udapi-python/95/issue_layout
twitter:imagehttps://opengraph.githubassets.com/ed7dff45b0abdd8076d89f8a290ac7905b91eaeab708dd0321671d06a4913160/udapi/udapi-python/issues/95
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ed7dff45b0abdd8076d89f8a290ac7905b91eaeab708dd0321671d06a4913160/udapi/udapi-python/issues/95
og:image:altI have the following code to fix tokenization issues in Spanish AnCora (UniversalDependencies/UD_Spanish-AnCora#6): if re.search(r'\w[¡!]$', node.form): # Separate the punctuation and attach it to ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedan-zeman
hostnamegithub.com
expected-hostnamegithub.com
None4922b452d03cd8dbce479d866a11bc25b59ef6ee2da23aa9b0ddefa6bd4d0064
turbo-cache-controlno-preview
go-importgithub.com/udapi/udapi-python git https://github.com/udapi/udapi-python.git
octolytics-dimension-user_id19330164
octolytics-dimension-user_loginudapi
octolytics-dimension-repository_id58709861
octolytics-dimension-repository_nwoudapi/udapi-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id58709861
octolytics-dimension-repository_network_root_nwoudapi/udapi-python
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release7e5ae23c70136152637ceee8d6faceb35596ec46
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/udapi/udapi-python/issues/95#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fudapi%2Fudapi-python%2Fissues%2F95
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fudapi%2Fudapi-python%2Fissues%2F95
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=udapi%2Fudapi-python
Reloadhttps://github.com/udapi/udapi-python/issues/95
Reloadhttps://github.com/udapi/udapi-python/issues/95
Reloadhttps://github.com/udapi/udapi-python/issues/95
udapi https://github.com/udapi
udapi-pythonhttps://github.com/udapi/udapi-python
Notifications https://github.com/login?return_to=%2Fudapi%2Fudapi-python
Fork 34 https://github.com/login?return_to=%2Fudapi%2Fudapi-python
Star 59 https://github.com/login?return_to=%2Fudapi%2Fudapi-python
Code https://github.com/udapi/udapi-python
Issues 7 https://github.com/udapi/udapi-python/issues
Pull requests 2 https://github.com/udapi/udapi-python/pulls
Actions https://github.com/udapi/udapi-python/actions
Projects 0 https://github.com/udapi/udapi-python/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/udapi/udapi-python/security
Please reload this pagehttps://github.com/udapi/udapi-python/issues/95
Insights https://github.com/udapi/udapi-python/pulse
Code https://github.com/udapi/udapi-python
Issues https://github.com/udapi/udapi-python/issues
Pull requests https://github.com/udapi/udapi-python/pulls
Actions https://github.com/udapi/udapi-python/actions
Projects https://github.com/udapi/udapi-python/projects
Security https://github.com/udapi/udapi-python/security
Insights https://github.com/udapi/udapi-python/pulse
New issuehttps://github.com/login?return_to=https://github.com/udapi/udapi-python/issues/95
New issuehttps://github.com/login?return_to=https://github.com/udapi/udapi-python/issues/95
node.shift_after_node() does not update enhanced dependencieshttps://github.com/udapi/udapi-python/issues/95#top
bughttps://github.com/udapi/udapi-python/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/dan-zeman
https://github.com/dan-zeman
dan-zemanhttps://github.com/dan-zeman
on Oct 29, 2021https://github.com/udapi/udapi-python/issues/95#issue-1039841307
UniversalDependencies/UD_Spanish-AnCora#6https://github.com/UniversalDependencies/UD_Spanish-AnCora/issues/6
bughttps://github.com/udapi/udapi-python/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.