Skip to content

Instantly share code, notes, and snippets.

View toVersus's full-sized avatar

Tsubasa Nagasawa toVersus

View GitHub Profile
@toVersus
toVersus / retrieve_mgo.go
Created April 20, 2018 14:20
[Language Processing 100 Essentials] #65: Retrieve artist information from MongoDB
package main
import (
"bufio"
"flag"
"fmt"
"io"
"os"
"time"
@toVersus
toVersus / setup_mgo.go
Created April 19, 2018 13:33
[Language Processing 100 Essentials] #64: Insert and index artist information on MongoDB
package main
import (
"bufio"
"flag"
"fmt"
"io"
"os"
"time"
@toVersus
toVersus / rpush_tags.go
Created April 18, 2018 11:18
[Language Processing 100 Essentials] #63: Insert object into value on KVS
package main
import (
"bufio"
"encoding/json"
"flag"
"fmt"
"io"
"os"
@toVersus
toVersus / iterate_counter.go
Created April 17, 2018 14:20
[Language Processing 100 Essentials] #62: Iterate to count the number of artists in specified area
package main
import (
"flag"
"fmt"
"os"
"github.com/go-redis/redis"
)
@toVersus
toVersus / retrieve_area.go
Created April 17, 2018 14:16
[Language Processing 100 Essentials] #61: Retrieve area by artist name
package main
import (
"flag"
"fmt"
"os"
"github.com/go-redis/redis"
)
@toVersus
toVersus / set_keyval.go
Created April 15, 2018 05:00
[Language Processing 100 Essentials] #60: Parse JSON file and set name and area of artists on key-value store
package main
import (
"bufio"
"encoding/json"
"flag"
"fmt"
"io"
"os"
@toVersus
toVersus / parse_s_expr.go
Created April 14, 2018 13:58
[Language Processing 100 Essentials] #59: Parse S-expression
package main
import (
"encoding/xml"
"flag"
"fmt"
"os"
"strings"
)
@toVersus
toVersus / extract_tuples.go
Created April 12, 2018 13:00
[Language Processing 100 Essentials] #58: Extract tuples
package main
import (
"encoding/xml"
"flag"
"fmt"
"os"
)
type Root struct {
@toVersus
toVersus / create_dep_dot_file.go
Created April 11, 2018 14:18
[Language Processing 100 Essentials] #57: Dependency analysis
package main
import (
"encoding/xml"
"flag"
"fmt"
"os"
"strconv"
"github.com/awalterschulze/gographviz"
@toVersus
toVersus / representative_text.go
Created April 10, 2018 11:24
[Language Processing 100 Essentials] #56: Co-reference analysis
package main
import (
"encoding/xml"
"flag"
"fmt"
"os"
"strings"
)