Skip to content

Instantly share code, notes, and snippets.

View timathom's full-sized avatar

Tim Thompson timathom

  • Yale University Library
  • New Haven, CT
View GitHub Profile
<data>
<term>Housing</term>
<term>United States--History</term>
</data>
@timathom
timathom / bibframe-in-alma-draft.ipynb
Last active August 8, 2025 17:54
bibframe-in-alma-draft.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@timathom
timathom / introduction-to-word-and-text-embeddings.ipynb
Created July 2, 2025 13:36
introduction-to-word-and-text-embeddings.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@timathom
timathom / entity-resolution-with-weaviate.ipynb
Last active July 2, 2025 21:17
entity-resolution-with-weaviate.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@timathom
timathom / domain-classification-with-mistral.ipynb
Created July 2, 2025 02:51
domain-classification-with-mistral.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@timathom
timathom / no_linkage_names.xsl
Last active July 9, 2025 12:46
`no_linkage` normalization rule for generic names in Alma
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<!-- Identity transform -->
<xsl:template match="@* | node()">
<xsl:copy>
<xsl:apply-templates select="@* | node()"/>
</xsl:copy>
</xsl:template>
@timathom
timathom / jaro-winkler.xqy
Last active February 27, 2024 04:59
Jaro-Winkler similarity in XQuery 4.0
xquery version "4.0";
(:~
:
: Module Name: Jaro-Winkler String Similarity
: Date: February 26, 2024
: License: GPLv3
: XQuery specification: 4.0
: Dependencies: BaseX 11.0
: @author @timathom
@timathom
timathom / basex11beta.xq
Last active November 22, 2023 15:08
Issue in BaseX 11.0 beta?
let $data := map {
"warner bros": [map {
"match": "true",
"uri": "http://id.loc.gov/authorities/names/n50028315 http://id.loc.gov/authorities/names/n85138180 http://id.loc.gov/authorities/names/no2003017455",
"index-type": "x",
"entry-id": "60021fec-672e-4f09-a160-197c1e2c97e1",
"tags": "710",
"lookup": "warner bros",
"source": <key>warner bros</key>,
"file": "lcnaf-2023"

Keybase proof

I hereby claim:

  • I am timathom on github.
  • I am tat2 (https://keybase.io/tat2) on keybase.
  • I have a public key ASCqGFoEyzQPciI6A7rHDldoMusJNh3molcN1xXDoYuG_Ao

To claim this, I am signing this object:

Verifying my Blockstack ID is secured with the address 1N1sGc9X21nZXSHiZFnJ8Jbcf1Q24KrzZy https://explorer.blockstack.org/address/1N1sGc9X21nZXSHiZFnJ8Jbcf1Q24KrzZy