ordia
ordia copied to clipboard
Grammar checking in SPARQL?
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.
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