Difference between revisions of "ReVerb"

From Robert-Depot
Jump to: navigation, search
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
*Reverb github page: https://github.com/knowitall/reverb-core
+
= ReVerb =
*Reverb jar (on github page)
+
*homepage http://reverb.cs.washington.edu/
*<code>reverb</code> shell script
+
*github page: https://github.com/knowitall/reverb-core
<code>
+
*jar (on github page)
 
+
= Usage =
 +
*<code>reverb</code> shell script:
 +
<pre>
 
#!/bin/sh
 
#!/bin/sh
 
cd `dirname "$0"`
 
cd `dirname "$0"`
 
java -Xmx512m -jar reverb-latest.jar $1
 
java -Xmx512m -jar reverb-latest.jar $1
 +
</pre>
  
</code>
+
*examples:
 
+
<pre>echo "Bananas are an excellent source of potassium." |      ./reverb -q |'\t' '\n' | cat -n</pre>
*Usage:
+
<pre>echo "Robert is a very intelligent artist." |      ./reverb -q | tr '\t' '\n' | cat -n</pre>
**<code>echo "Bananas are an excellent source of potassium." |      ./reverb -q |'\t' '\n' | cat -n</code>
+
<pre>echo "Bananas are very intelligent." |      ./reverb -q | tr '\t' '\n' | cat -n</pre>
**<code>echo "Robert is a very intelligent artist." |      ./reverb -q | tr '\t' '\n' | cat -n</code>
+
*processing all sentences in a text file:
**<code>echo "Bananas are very intelligent." |      ./reverb -q | tr '\t' '\n' | cat -n</code>
+
<pre>/reverb ~/script/script.txt</pre>
 +
= Web search based on Open IE =
 +
* http://openie.cs.washington.edu/

Latest revision as of 11:49, 26 September 2012

ReVerb

Usage

  • reverb shell script:
#!/bin/sh
cd `dirname "$0"`
java -Xmx512m -jar reverb-latest.jar $1
  • examples:
echo "Bananas are an excellent source of potassium." |      ./reverb -q |'\t' '\n' | cat -n
echo "Robert is a very intelligent artist." |      ./reverb -q | tr '\t' '\n' | cat -n
echo "Bananas are very intelligent." |      ./reverb -q | tr '\t' '\n' | cat -n
  • processing all sentences in a text file:
/reverb ~/script/script.txt

Web search based on Open IE