Issue 31 in nlp2rdf: First Sense Tagger for Wiktionary

0 views
Skip to first unread message

nlp...@googlecode.com

unread,
Aug 8, 2012, 5:23:37 AM8/8/12
to nlp2r...@googlegroups.com
Status: Accepted
Owner: allesgut...@gmail.com
Labels: Type-Enhancement Priority-Medium

New issue 31 by kur...@gmail.com: First Sense Tagger for Wiktionary
http://code.google.com/p/nlp2rdf/issues/detail?id=31

Expected output for "Subsequent to George W...." and regex "English-*-1en"
<http://example.org/ex#offset_0_10> sso:wiktionary
<http://wiktionary.dbpedia.org/resource/subsequent-English-Adjective-1en> .
<http://example.org/ex#offset_11_13> sso:wiktionary
http://wiktionary.dbpedia.org/resource/to-English-Adverb-1en> ,
<http://wiktionary.dbpedia.org/resource/to-English-Preposition-1en> .

Query:
select ?sense from <http://en.wiktionary.dbpedia.org/> where {
<http://wiktionary.dbpedia.org/resource/Subsequent>
<http://www.monnet-project.eu/lemon#sense> ?sense } LIMIT 100

select ?sense from <http://en.wiktionary.dbpedia.org/> where {
<http://wiktionary.dbpedia.org/resource/to>
<http://www.monnet-project.eu/lemon#sense> ?sense .
Filter (regex (str(?sense ) , "English-.*1en$" ))
} LIMIT 100

select ?sense from <http://en.wiktionary.dbpedia.org/> where {
?s <http://www.monnet-project.eu/lemon#sense> ?sense .
Filter (?s LIKE <http://wiktionary.dbpedia.org/resource/[S|s]ubsequent> ) .
Filter (regex (str(?sense ) , "English-.*1en$" ))
} LIMIT 100

Requirements:
- if query for "Subsequent" fails, try again with lower case "subsequent"
- on config options for regex e.g. "English" und "en" as in
subsequent-English-Adjective-1en



echo "Subsequent to George W. Bush's assumption of the presidency in
January 2001, the U.S. made it clear that it would not accept what had
become the status quo with respect to Iraq - a country ruled by Saddam
Hussein and free to attempt to reconstitute its assorted weapons of mass
destruction programs. As part of their campaign against the status quo,
which included the clear threat of the eventual use of military force
against the Iraqi regime, the U.S. and Britain published documents and
provided briefings detailing their conclusions concerning Iraq's WMD
programs and its attempts to deceive other nations about those programs "
| sed 's/ /\n/g' | sort -u | wc -l


Reply all
Reply to author
Forward
0 new messages