Skip to content

SAPPHIRE: Simple Aligner for Phrasal Paraphrase with Hierarchical Representation

Notifications You must be signed in to change notification settings

m-yoshinaka/sapphire

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SAPPHIRE: Simple Aligner for Phrasal Paraphrase with Hierarchical Representation (Beta)

SAPPHIRE is a simple monolingual phrase aligner based on word embeddings.

Description

SAPPHIRE depends only on a pre-trained word embeddings. Therefore, it is easily transferable to specific domains and different languages.
This library is designed for a pre-trained model of fastText. But it is easy to replace the model.

Requirement

  • Python 3.5 or newer
  • NumPy & SciPy
  • fasttext

Installation (for fastText version)

  1. Install requirements
    After cloning this repository, go to the root directory and pip install -r requirements.txt or pipenv install.

  2. Download pre-trained model of fastText or prepare your model of fastText.

$ curl -O https://dl.fbaipublicfiles.com/fasttext/vectors-english/wiki-news-300d-1M-subword.bin.zip

$ unzip wiki-news-300d-1M-subword.bin.zip
  1. Move the pre-trained model to model directory.

Usage

import sa

About

SAPPHIRE: Simple Aligner for Phrasal Paraphrase with Hierarchical Representation

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published