Computational Intelligence and Neuroscience / 2016 / Article / Alg 1

Research Article

Knowledge-Driven Event Extraction in Russian: Corpus-Based Linguistic Resources

Algorithm 1

SELECT dep_bigrams.lemma_id,
SUM(CASE
  WHEN dep_bigrams.gram LIKE %nomn%
  THEN dep_bigrams.count
  ELSE 0 END) AS nomn,
SUM(CASE
  WHEN dep_bigrams.gram LIKE %loct%
  THEN dep_bigrams.count
  ELSE 0 END) AS loct,
FROM dep_bigrams
WHERE dep_bigrams.pos = VERB
GROUP BY dep_bigrams.lemma_id;