Giter VIP home page Giter VIP logo

pseudo-ref's People

Contributors

amitmy avatar renj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

pseudo-ref's Issues

Infinite loop when generate lattice reference

Thanks for this code .

When using the following sentences as dataset , I met a infinite loop in dfs(G, T, u, visited) :

伦敦 每日 快报 指出 , 两 台 记载 黛安娜 王妃 一九九七年 巴黎 死亡 车祸 调查 资料 的 手提 电脑 , 被 从前 大都会 警察 总 长 的 办公室 里 偷走 。
london 's daily express noted that two laptops with inquiry data on the 1997 paris car accident that caused the death of princess diana were stolen from the office of a former metropolitan police commissioner .
london daily express pointed out that two laptop computers , which contain investigation materials about the car accident and death of princess diana in 1997 , were stolen from the office of the former metropolitan police chief .
london 's daily express has reported that two laptop computers containing material on the probe into princess diana 's fatal car crash in paris in 1997 have been stolen from the office of a former metropolitan police commissioner .
the london daily indicated that two laptop computers containing investigative materials on the 1997 paris car accident and death of princess diana were stolen from the office of the former commissioner of the metropolitan police .
[Quoted from NIST2006 the third sentence]

By the way , I didn't delete punctuation in sentences[tokens]
Then I run this :

python lattice.py -order_method hard -align_method hard -dataset data/dataset.json -minus 0.5

Howerver it is in an infinite loop . I do not know where is wrong .
Hope for your reply . Thank you .

ImportError: No module named loader

Thanks for this code.

First, the README is missing two dependencies: matplotlib and scipy.

When running the command from the README, I get an error:

Traceback (most recent call last):
File "lattice.py", line 2, in
import msa_class
File "/home/nlp/amit/pseudo-ref/msa_class.py", line 15, in
import loader
ImportError: No module named loader

I am assuming that that is because of

sys.path.append('../pytorch-examples/word_language_model/')

But I haven't found any indication in https://github.com/pytorch/examples/tree/master/word_language_model of a loader.

Can you please add instructions on how to get loader? or maybe add it to this repo as well?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.