Code Monkey home page Code Monkey logo

jspos's People

Watchers

 avatar

jspos's Issues

jspos newbie

Hey!

The following code doesn't work... except for the "hello world" test.


Any ideas?

Thanks!

Yoni


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>

<script type = "text/javascript" src="lexer.js"></script>
<script type = "text/javascript"src="lexicon.js_"></script>
<script type = "text/javascript"src="POSTagger.js"></script>
<script type="text/javascript">
var words = new Lexer().lex("This is some sample text. This text can contain 
multiple sentences.");
var taggedWords = new POSTagger().tag(words);
for (i in taggedWords) {
    var taggedWord = taggedWords[i];
    var word = taggedWord[0];
    var tag = taggedWord[1];
    print(word + " /" + tag);
}
</script>


<script type = "text/javascript">

document.write('Hello World!');


</script>


</body>
</html>

Original issue reported on code.google.com by [email protected] on 29 Aug 2010 at 3:33

Issue With Safari

What steps will reproduce the problem?
1.  trying to include the lexicon.js_ in webpage(which we always do), but under 
safari

What is the expected output? What do you see instead?
The result shows up that there is a parser error for var POSTAGGER_LEXICON, 
first line of lexicon.js_

What version of the product are you using? On what operating system?
I am using this parser under mac os 10.6 snow leopard

Please provide any additional information below.
It works fine under firefox, which I hope it will also works for IE, I 
understand there are browser capability issues all around cods, just wonder if 
the parser error can be fixed soon at sometime?

with many thanks
Phil

Original issue reported on code.google.com by [email protected] on 7 Jul 2011 at 1:49

Attachments:

Adjective vs adverb

Felix NNPwas VBDa DTlonely, RByoung JJboy. ----bad b/c lonely is an adjective 
as well because it can be used alone with "boy"--- (from 
http://www.grammarbook.com/punctuation/commas.asp rule 3)

Original issue reported on code.google.com by [email protected] on 3 Nov 2010 at 7:41

Issue With Safary

What steps will reproduce the problem?
1.  trying to include the lexicon.js_ in webpage(which we always do), but under 
safari

What is the expected output? What do you see instead?
The result shows up that there is a parser error for var POSTAGGER_LEXICON, 
first line of lexicon.js_

What version of the product are you using? On what operating system?
I am using this parser under mac os 10.6 snow leopard

Please provide any additional information below.
It works fine under firefox, which I hope it will also works for IE, I 
understand there are browser capability issues all around cods, just wonder if 
the parser error can be fixed soon at sometime?

with many thanks
Phil

Original issue reported on code.google.com by [email protected] on 7 Jul 2011 at 1:49

Attachments:

Italy is wrongly tagged as an adverb sometimes

What steps will reproduce the problem?
1. In the sample.html file
2. Search for 'Italy'

What is the expected output? What do you see instead?
It's tagged as RB in: 
crowns /NNS
of /IN
France /NNP
and /CC
Italy /RB.

but as NN in: 
when /WRB
mentioning /VBG
his /PRP$
proposed /VBN
journey /NN
to /TO
Italy: /NN


What version of the product are you using? On what operating system?
jspos-0.2.2 Firefox and Chrome in Windows Vista and XP.

Please provide any additional information below.

Also, in the first sentence of sample.html:
as /IN
in /IN
his /PRP$
promises /VBZ

'promises' should be a plural noun, not a verb. 'His' is a possessive, so is 
usually followed by a noun or a noun phrase.

Overall it's a great tagger and I like it a lot. I'd like to help make it 
better.

Cheers,

Andy 

Original issue reported on code.google.com by [email protected] on 7 May 2013 at 1:38

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.