Code Monkey home page Code Monkey logo

Comments (7)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 25, 2024
Removing all non-alphanumeric characters (save spaces), the data set gets read 
in fine. 

It seems like there are some characters (` maybe?) that it can't handle. Is 
there a list somewhere I can find of unsupported characters? Is this sounding 
right to you?

Original comment by [email protected] on 17 Jul 2013 at 11:12

from berkeleylm.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 25, 2024
Can you print out the exact line that's failing? I don't know why it wouldn't 
handle special characters. 

Original comment by [email protected] on 17 Jul 2013 at 11:35

from berkeleylm.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 25, 2024
Do you mean the line in my ARPA file? I don't know, that's part of my problem.

Original comment by [email protected] on 17 Jul 2013 at 11:36

from berkeleylm.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 25, 2024
Here's the ARPA file that's not working.

Original comment by [email protected] on 17 Jul 2013 at 11:37

Attachments:

from berkeleylm.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 25, 2024
On line edu.berkeley.nlp.lm.io.ArpaLmReader.parseLine(ArpaLmReader.java:172), 
add a print statement that prints the |line| if the array is less than the 
number of spaces in |line| is less than |ngram.length|.

Original comment by [email protected] on 17 Jul 2013 at 11:49

from berkeleylm.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 25, 2024
Ah, I figured it out. My parser was giving my "words" that still had spaces in 
them, so I would write a unigram that the parser was interpreting as a bigram. 
(I am using stanford's NLP parser to parse files into sentences).

Your hint about spaces helped. Thanks!

Original comment by [email protected] on 18 Jul 2013 at 3:20

from berkeleylm.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 25, 2024

Original comment by [email protected] on 18 Jul 2013 at 3:30

  • Changed state: Invalid

from berkeleylm.

Related Issues (20)

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.