ordia icon indicating copy to clipboard operation
ordia copied to clipboard

Grammar checking in SPARQL?

Open fnielsen opened this issue 6 years ago • 1 comments

Grammar checking in SPARQL?

With a simple nominal phrase: "en lille mand":

SELECT (COUNT(*) AS ?count) ?o ?oLabel WHERE {
  VALUES ?word {
    wd:L2022-F1  # en
    wd:L34834-F1  # lille
    wd:L34797-F1  # mand
  }
  ?word wikibase:grammaticalFeature ?o .
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
GROUP BY ?o ?oLabel            
  • Singular has three counts, i.e., as many as the words
  • Indefinite only two, but there is no definite.

fnielsen avatar Jan 17 '19 21:01 fnielsen

Design and Evaluation of an Agreement Error Detection System: Testing the Effect of Ambiguity, Parser and Corpus Type https://tools.wmflabs.org/scholia/work/Q60668869

fnielsen avatar Jan 17 '19 23:01 fnielsen