[ create a new paste ] login | about

unhammer

Name: Kevin Brubeck Unhamm
Email:
Site/Blog: http://wiki.apertium.org/wiki/User:Unhammer
Location: Sandnes, Norway
Default language: Plain Text
Favorite languages: Nynorsk, Samisk
About:

Saved pastes by unhammer:

Python, pasted on Apr 20:
1
2
3
4
5
#!/bin/bash

decodehtmlentities='#!/usr/bin/env python2
import sys, codecs
sys.stdin = codecs.getreader("utf-8")(sys.stdin)
...
view (15 lines)
Plain Text, pasted on Mar 29:
1
2
3
4
5
diff --git a/Makefile.am b/Makefile.am
index 2bb2864..8b21a4d 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -30,27 +30,27 @@ TARGETS_COMMON = \
...
view (961 lines)
Plain Text, pasted on Dec 3:
1
2
3
4
5
# Get the language pair and compile:
$ svn co https://apertium.svn.sourceforge.net/svnroot/apertium/trunk/apertium-nn-nb
$ sh autogen.sh
$ make

...
view (20 lines, 3 comments)
Plain Text, pasted on Nov 29:
1
2
3
4
5
BEGIN { FS = "/" } ;
{
	# Grep out those analyses where lemma == surfaceform
	sub(/^\^/,"", $1); # $1 == surfaceform, the lemmas we want
	printf "^%s", $1;
...
view (20 lines)
Plain Text, pasted on Aug 21:
1
$ cat sme/src/pp-sme-lex.txt |sed 's/ *!.*//'|grep '\(Pp\|Postp\|Prep\) *; *$'|sed 's%+Use/Sub%%'|sed 's/^ *//'|sed 's/^\(.*\):\1\(9\)* /\1 /'|sed 's/:[^ ]*//'
view (1 line)
Plain Text, pasted on Jul 17:
1
2
3
4
5
$ echo '^mannat<V><IV><PrsPrc>$  ^Israel<N><Prop><Plc><Sg><Loc>$ ^girječálli<N><Actor><Sg><Nom>$ ^10<Num><Sg><Nom>$' | hfst-proc -g fin-sme.autogen.hfst
manni  Israelas/Israelis girječálli 10

$ echo manni Israelas Israelis Israelan Israelin Israel:s girječálli 10 | tr ' ' '\n' | hfst-lookup .deps/sme-fin.automorf.useless.tmp
manni   manni+CmpN/SgN+CmpN/SgG+CmpN/PlG+N+Actor+Sg+Nom
...
view (32 lines)
Plain Text, pasted on Jul 14:
1
2
3
4
5
almmá
ekstrema
giel
humanisttalaš
máŋemus
...
view (12 lines)
Plain Text, pasted on Jul 14:
1
2
3
4
5
dála
doantá
ihtážii
máŋemus
otnážii
...
view (7 lines)
Plain Text, pasted on Jul 14:
1
2
3
4
5
addaleapmi
áfáiduhttin
áhpásmahttin
áigeráddjehus
ákta
...
view (192 lines)
Plain Text, pasted on Jul 14:
1
2
3
4
5
2010-01-23:

   <spectie> – Dušše unnitlohku duostá ovddidit oaiviliid dán áššis, dan botta go
  	   eanas olbmot servvodagas ja erenoamážit risttalaččat, váldet
  	   muslimaid vuostá rabas gieđaiguin. Mun imaštalan maiddái mo Romssa
...
view (33 lines)
C++, pasted on Jul 6:
1
2
3
4
5
Index: apertium/trx_reader.cc
===================================================================
--- apertium/trx_reader.cc	(revision 23557)
+++ apertium/trx_reader.cc	(working copy)
@@ -276,7 +276,14 @@
...
view (20 lines)