This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo -u postgres psql recogito | |
ALTER TABLE gdocuments ADD COLUMN geo_origin character varying(254); | |
ALTER TABLE gdocuments ADD COLUMN geo_findspot character varying(254); | |
ALTER TABLE gdocuments ADD COLUMN geo_author_location character varying(254); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Segment 1 1C4 | TPPlace98 | |
---|---|---|
Segment 10 10B4 | TPPlace2650 | |
Segment 4 4B2 | TPPlace3550 | |
Segment 3 3B4 | TPPlace1122 | |
Segment 3 3B5 | TPPlace2953 | |
Segment 4 4B1 | TPPlace2958 | |
Segment 5 5B2 | TPPlace1293 | |
Segment 10 10B3 | TPPlace2616 | |
Segment 8 8A1 | TPPlace3121 | |
Segment 4 4B2 | TPPlace2966 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
-- concat (toponym, toponym_corrected), count(*) | |
coalesce(toponym, toponym_corrected), count(*) | |
FROM annotations WHERE | |
(status = 'NOT_IDENTIFYABLE' OR status = 'NO_SUITABLE_MATCH' OR status = 'AMBIGUOUS' OR status = 'MULTIPLE') | |
-- GROUP BY concat(toponym, toponym_corrected) | |
GROUP BY coalesce(toponym, toponym_corrected) | |
ORDER BY count desc ; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Created on 02.05.2013 | |
@author: simonr | |
''' | |
from pylab import plot,show | |
from numpy import vstack,array | |
from numpy.random import rand | |
from scipy.cluster.vq import kmeans,vq |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sbt._ | |
import Keys._ | |
object ScalagiosBuild extends Build { | |
lazy val core = Project(id = "scalagios-core", | |
base = file("scalagios-core")) | |
lazy val legacy = Project(id = "scalagios-legacy", | |
base = file("foo")) dependsOn(core) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import scala.xml.XML | |
import java.io.FileWriter | |
import scala.xml.transform.RewriteRule | |
import scala.xml.Node | |
import scala.xml.NodeSeq | |
import scala.xml.Elem | |
import scala.xml.transform.RuleTransformer | |
import scala.xml.Text | |
object TEI extends App { |
NewerOlder