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

XSLT script extracting all motion and arrival verbs into separate untokenized document #116

Open
iljackb opened this issue Nov 19, 2021 · 0 comments

Comments

@iljackb
Copy link
Owner

iljackb commented Nov 19, 2021

I need to get an aggregation of all instances of motion and arrival verbs into a single place without the tokenized text.

XSLT should:

  • Search for a list of key words in translations in following-sibling::spanGrp[@type='annotations'][1] and <xsl:for-each select="$annotations/span[@ana='#S' and @xml:lang='en']">
    key words should include: ("come", "coming", "came", "comes", "go", "went", "goes", "going", "arrive", "arrives", "arrived", "got there", "got here", "went home", "go home", "come home", "came home",.....)

  • For each sentence whose following-sibling::spanGrp[@type='annotations'][1] contains one of the key words:
    - copy at <span type="S"> level (remove spaces)
    - (one tab over) copy span[@ana='#S' and @xml:lang='en']

  • Can manually refine the results in a spreadsheet

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