MontyLingua3 – GPLed fork of MontyLingua

MontyLingua is a popular Natural Language processing tool which can understand english language and also correct it based on common sense – used by many people around the world for research. It did have a small problem – licensing. The author released it under two licenses which states that:

If it is your intent to use this software for non-commercial,
non-prioprietary purposes, such as for academic research purposes,
this software is free and is covered under the GNU GPL License,
given here: <http://www.gnu.org/licenses/gpl.txt> and in the
APPENDIX of this document.

If you are interested in this software for commercial purposes,
commercial licensing information is available.  Please email
([email protected]) for more information.

In my company, we have been trying to get to the author for the commercial license but he hasn’t replied to any emails. So we decided to make use of another NLP tool and move on. But a few days back there was a discussion at Reddit where it was noted that someone can get the software for non-commercial use under GPL – which gives him the full right offered by GPL. So he can copy, modify and share the software to anyone and the person who gets the software from him (not Hugo) can get it under GPL. This essentially avoids the commercial license path of MontyLingua Version 2.0 license.

I thought since I was already working on improving the code, why don’t I fork it, do the bug fixes and release it under GPL. This will allow anyone else to come up and fix the code and improve the project. Since the author isn’t actively working on this project, I think using this fork will benefit everyone to get a better version.

I have created a public repository in bitbucket called MontyLingua3 (the old one is in version 2.1). Right now I am going to clean up the code and since I am not a NLP expert there won’t be any new additional features. If someone can contribute with new features/functions then I would be very happy to include their patches.

To get the source code, install mercurial and clone the repository as

$ hg clone http://bitbucket.org/cnu/montylingua3/

So, please contribute to the project.

17 thoughts on “MontyLingua3 – GPLed fork of MontyLingua

  1. Chih How

    I came across this error, do you know what happens? Thanks in advance.

    Traceback (most recent call last):
    File “”, line 1, in
    File “C:Python25Libsite-packagesmontylinguaMontyLingua.py”, line 164, in __init__
    self.theMontyLemmatiser = MontyLemmatiser.MontyLemmatiser()
    File “C:Python25Libsite-packagesmontylinguaMontyLemmatiser.py”, line 64, in __init__
    pathname_str=open(buffers,’r')
    IOError: [Errno 2] No such file or directory: ”

    Reply
  2. HH

    How many forks do we need? This is why the people don’t want to use Linux (GNU/Linux?). The forks are confusing the user, and what’s worst, forks are created because of a little difference with the original developers…

    Reply
  3. Ilija

    Hi I tried to compile it with jython but got
    ValueError: typecode must be in [zcbhilfd]
    message. Any help is welcomed

    Reply
  4. Free Download

    I’m also getting an error, it doesn’t work properly.

    Anyways, I just wanted to say you should start posting again, really have a nice site going on here, with a cool collection of free software.

    Reply
  5. drjohn

    To fix the “ValueError: typecode must be in [zcbhilfd]” error, edit the file: “MontySettings.py” and set JYTHON_P=1

    This will set the types correctly for Jython.

    –DrJohn

    Reply
  6. drjohn

    The “IOError: [Errno 2] No such file or directory: ”” issue that users have seen is apparently because the file “LEMMAEXCEPTIONS.MDF” is not available in the current directory or path, or it has access control issues.

    Reply
  7. jackr

    it is this i get when i run the Sample prgm given
    E:jdk1.4bin>java Sample

    ****** MontyLingua v.2.1 ******
    ***** by [email protected] *****
    Exception in thread “main” Java Traceback:

    at org.python.core.Py.IOError(Py.java)
    at org.python.core.PyFile._setup(PyFile.java)
    at org.python.core.PyFile.(PyFile.java)
    at org.python.core.__builtin__.open(__builtin__.java)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java
    )
    at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java
    )
    at org.python.core.PyObject.__call__(PyObject.java)
    at montylingua.MontyLemmatiser$_PyInner.__init__$5(MontyLemmatiser.java:
    5312)
    at montylingua.MontyLemmatiser$_PyInner.call_function(MontyLemmatiser.ja
    va:5219)
    at org.python.core.PyTableCode.call(PyTableCode.java)
    at org.python.core.PyTableCode.call(PyTableCode.java)
    at org.python.core.PyTableCode.call(PyTableCode.java)
    at org.python.core.PyFunction.__call__(PyFunction.java)
    at org.python.core.PyInstance.__init__(PyInstance.java)
    at org.python.core.PyClass.__call__(PyClass.java)
    at org.python.core.PyObject.__call__(PyObject.java)
    at montylingua.MontyLingua$_PyInner.__init__$1(MontyLingua.java:218)
    at montylingua.MontyLingua$_PyInner.call_function(MontyLingua.java:163)
    at org.python.core.PyTableCode.call(PyTableCode.java)
    at org.python.core.PyTableCode.call(PyTableCode.java)
    at org.python.core.PyTableCode.call(PyTableCode.java)
    at org.python.core.PyFunction.__call__(PyFunction.java)
    at org.python.core.PyInstance.__init__(PyInstance.java)
    at org.python.core.PyClass.__call__(PyClass.java)
    at org.python.core.PyObject.__call__(PyObject.java)
    at montylingua.JMontyLingua$_PyInner.__init__$1(JMontyLingua.java:85)
    at montylingua.JMontyLingua$_PyInner.call_function(JMontyLingua.java:63)

    at org.python.core.PyTableCode.call(PyTableCode.java)
    at org.python.core.PyTableCode.call(PyTableCode.java)
    at org.python.core.PyTableCode.call(PyTableCode.java)
    at org.python.core.PyFunction.__call__(PyFunction.java)
    at org.python.core.PyInstance.__init__(PyInstance.java)
    at org.python.core.Py.initProxy(Py.java)
    at montylingua.JMontyLingua.__initProxy__(JMontyLingua.java:256)
    at montylingua.JMontyLingua.(JMontyLingua.java:234)
    at Sample.main(Sample.java:10)
    Traceback (innermost last):
    File “C:workmontylingua-2.0copyJMontyLingua.py”, line 0, in __init__
    File “C:workmontylingua-2.0copyMontyLingua.py”, line 0, in __init__
    File “C:workmontylingua-2.0copyMontyLemmatiser.py”, line 0, in __init__
    IOError: File not found – (The system cannot find the path specified)

    Reply
  8. drjohn

    If you’ve rebuilt the montylingua.jar file, then running:

    java -cp .;montylingua.jar Sample

    In the directory containing the Jar file, Sample.class and the .MDF Files, should yield something similar to:

    java>java -cp .;montyingua.jar Sample

    ****** MontyLingua v.2.1.1 ****** #Rebuild for Java 6
    ***** by [email protected] ***** #By drjohn
    Lemmatiser OK!
    Custom Lexicon Found! Now Loading!
    Fast Lexicon Found! Now Loading!
    Lexicon OK!
    LexicalRuleParser OK!
    ContextualRuleParser OK!
    Commonsense OK!
    Semantic Interpreter OK!
    Loading Morph Dictionary!
    *********************************

    ————– Tags text ———–

    California/NNP ‘s/POS officials/NNS were/VBD optimistic/JJ Monday/NNP about/IN t
    he/DT full/JJ containment/NN of/IN the/DT devastating/JJ wildfires/NNS that/WDT
    held/VBD 27/CD ,/, 000/CD US/PRP residents/NNS displaced/VBN in/IN southern/JJ C
    alifornia/NNP ./.

    All/DT fires/NNS were/VBD expected/VBN to/TO be/VB surrounded/VBN by/IN Tuesday/
    NNP ,/, if/IN not/RB by/IN Monday/NNP evening/NN ,/, said/VBD Andrea/NNP Tuttle/
    NNP ,/, director/NN of/IN the/DT California/NNP Department/NNP of/IN Forestry/NN
    P and/CC Fire/NNP Protection/NNP ./.

    Continued/VBN cooler/JJR weather/NN associated/VBN with/IN the/DT rain/NN ,/, sn
    ow/NN and/CC freezing/VBG temperatures/NNS at/IN night/NN helped/VBD exhausted/V
    BN firefighters/NNS claimvictory/VBP over/IN raging/VBG wildfires/NNS in/IN the/
    DT past/JJ days/NNS ,/, Tuttle/NNP said/VBD ,/, adding/VBG that/IN “/” the/DT we
    ather/NN continues/VBZ to/TO be/VB healthy/JJ for/IN us/PRP ./. “/” About/IN hal
    f/NN of/IN the/DT 14/CD ,/, 000/CD firefighters/NNS remained/VBD in/IN the/DT fr
    ont/NN tocombat/NN forest/NN fires/NNS in/IN an/DT area/NN ranging/VBG from/IN S
    an/NNP Diego/NNP to/TO San/NNP Bernardion/NNP in/IN southern/JJ California/NNP t
    ill/IN Monday/NNP ./.

    The/DT Old/NNP Fire/NNP ,/, the/DT last/JJ of/IN the/DT wildfires/NNS that/IN on
    ce/RB threatened/VBN the/DT populous/JJ ski/NN resort/NN of/IN Lake/NNP Big/NNP
    Bear/NNP in/IN the/DT San/NNP Bernardino/NNP Mountains/NNPS ,/, was/VBD 83/CD pe
    rcent/NN contained/VBD ./.

    Fire/NNP engine/NN crews/NNS sprayed/VBN smoky/JJ spots/NNS in/IN some/DT charre
    d/JJ areas/NNS ,/, and/CC utility/NN crews/NNS restrung/VBN lines/NNS to/TO rest
    ore/VB power/NN ./.

    More/RBR than/IN 27/CD ,/, 000/CD people/NNS of/IN about/IN 80/CD ,/, 000/CD eva
    cuees/NNS remained/VBD displaced/VBN ,/, most/RBS of/IN whom/WP are/VBP from/IN
    the/DT Lake/NNP Arrowhead/NNP area/NN ,/, where/WRB all/DT roads/NNS west/NN of/
    IN state/NN Highway/NNP 18/CD and/CC state/NN Highway/NNP 38/CD remained/VBD clo
    sed/VBN due/JJ to/TO a/DT threat/NN of/IN mudslides/NN ./.

    Other/JJ areas/NNS closed/VBD to/TO residents/NNS Monday/NNP include/VBP Crestli
    ne/NNP ,/, Lake/NNP Gregory/NNP ,/, Twin/NNP Peaks/NNP ,/, Rimforest/NNP ,/, Blu
    e/NNP Jay/NNP ,/, Cedar/NNP Glen/NNP ,/, Skyforest/NNP ,/, Running/VBG Springs/N
    NP ,/, Arrowbear/NNP Lake/NNP ,/, and/CC Green/NNP Valley/NNP Lake/NNP ./.

    ————– Chunks text ———–

    (NX California/NNP ‘s/POS officials/NNS NX) (VX were/VBD VX) (NX optimistic/JJ M
    onday/NNP NX) about/IN (NX the/DT full/JJ containment/NN NX) of/IN (NX the/DT de
    vastating/JJ wildfires/NNS NX) (NX that/WDT held/VBD 27/CD ,/, 000/CD NX) (NX US
    /PRP NX) (NX residents/NNS NX) (VX displaced/VBN VX) in/IN (NX southern/JJ Calif
    ornia/NNP NX) ./.

    (NX All/DT fires/NNS NX) (VX were/VBD expected/VBN to/TO be/VB VX) (VX surrounde
    d/VBN VX) by/IN (NX Tuesday/NNP NX) ,/, if/IN not/RB by/IN (NX Monday/NNP evenin
    g/NN NX) ,/, (VX said/VBD VX) (NX Andrea/NNP Tuttle/NNP ,/, director/NN NX) of/I
    N (NX the/DT California/NNP Department/NNP NX) of/IN (NX Forestry/NNP and/CC Fir
    e/NNP Protection/NNP NX) ./.

    (VX Continued/VBN VX) (NX cooler/JJR weather/NN NX) (VX associated/VBN VX) with/
    IN (NX the/DT rain/NN ,/, snow/NN and/CC freezing/VBG temperatures/NNS NX) at/IN
    (NX night/NN NX) (VX helped/VBD exhausted/VBN VX) (NX firefighters/NNS NX) (VX
    claimvictory/VBP VX) over/IN (VX raging/VBG VX) (NX wildfires/NNS NX) in/IN (NX
    the/DT past/JJ days/NNS ,/, Tuttle/NNP NX) (VX said/VBD VX) ,/, (VX adding/VBG V
    X) that/IN “/” (NX the/DT weather/NN NX) (VX continues/VBZ to/TO be/VB VX) (AX h
    ealthy/JJ AX) for/IN (NX us/PRP NX) ./. “/” About/IN (NX half/NN NX) of/IN (NX t
    he/DT 14/CD ,/, 000/CD firefighters/NNS NX) (VX remained/VBD VX) in/IN (NX the/D
    T front/NN tocombat/NN forest/NN fires/NNS NX) in/IN (NX an/DT area/NN NX) (VX r
    anging/VBG VX) from/IN (NX San/NNP Diego/NNP NX) to/TO (NX San/NNP Bernardion/NN
    P NX) in/IN (NX southern/JJ California/NNP NX) till/IN (NX Monday/NNP NX) ./.

    (NX The/DT Old/NNP Fire/NNP NX) ,/, the/DT (AX last/JJ AX) of/IN (NX the/DT wild
    fires/NNS NX) that/IN (VX once/RB threatened/VBN VX) (NX the/DT populous/JJ ski/
    NN resort/NN NX) of/IN (NX Lake/NNP Big/NNP Bear/NNP NX) in/IN (NX the/DT San/NN
    P Bernardino/NNP Mountains/NNPS ,/, was/VBD 83/CD percent/NN NX) (VX contained/V
    BD VX) ./.

    (NX Fire/NNP engine/NN crews/NNS NX) (VX sprayed/VBN VX) (NX smoky/JJ spots/NNS
    NX) in/IN (NX some/DT charred/JJ areas/NNS ,/, and/CC utility/NN crews/NNS restr
    ung/VBN lines/NNS NX) to/TO (VX restore/VB VX) (NX power/NN NX) ./.

    More/RBR than/IN (NX 27/CD ,/, 000/CD people/NNS NX) of/IN about/IN (NX 80/CD ,/
    , 000/CD evacuees/NNS NX) (VX remained/VBD displaced/VBN VX) ,/, most/RBS of/IN
    (NX whom/WP NX) (VX are/VBP VX) from/IN (NX the/DT Lake/NNP Arrowhead/NNP area/N
    N NX) ,/, where/WRB (NX all/DT roads/NNS west/NN NX) of/IN (NX state/NN Highway/
    NNP 18/CD and/CC state/NN Highway/NNP 38/CD NX) (VX remained/VBD closed/VBN VX)
    (AX due/JJ AX) to/TO (NX a/DT threat/NN NX) of/IN (NX mudslides/NN NX) ./.

    (NX Other/JJ areas/NNS NX) (VX closed/VBD VX) to/TO (NX residents/NNS Monday/NNP
    NX) (VX include/VBP VX) (NX Crestline/NNP ,/, Lake/NNP Gregory/NNP ,/, Twin/NNP
    Peaks/NNP ,/, Rimforest/NNP ,/, Blue/NNP Jay/NNP ,/, Cedar/NNP Glen/NNP ,/, Sky
    forest/NNP NX) ,/, (VX Running/VBG VX) (NX Springs/NNP ,/, Arrowbear/NNP Lake/NN
    P ,/, and/CC Green/NNP Valley/NNP Lake/NNP NX) ./.

    ————– Lemmatises text ———–

    California/NNP/California ‘s/POS/’s officials/NNS/official were/VBD/be optimisti
    c/JJ/optimistic Monday/NNP/Monday about/IN/about the/DT/the full/JJ/full contain
    ment/NN/containment of/IN/of the/DT/the devastating/JJ/devastating wildfires/NNS
    /wildfire that/WDT/that held/VBD/hold 27/CD/27 ,/,/, 000/CD/000 US/PRP/US reside
    nts/NNS/resident displaced/VBN/displace in/IN/in southern/JJ/southern California
    /NNP/California ././.

    All/DT/All fires/NNS/fire were/VBD/be expected/VBN/expect to/TO/to be/VB/be surr
    ounded/VBN/surround by/IN/by Tuesday/NNP/Tuesday ,/,/, if/IN/if not/RB/not by/IN
    /by Monday/NNP/Monday evening/NN/evening ,/,/, said/VBD/say Andrea/NNP/Andrea Tu
    ttle/NNP/Tuttle ,/,/, director/NN/director of/IN/of the/DT/the California/NNP/Ca
    lifornia Department/NNP/Department of/IN/of Forestry/NNP/Forestry and/CC/and Fir
    e/NNP/Fire Protection/NNP/Protection ././.

    Continued/VBN/Continue cooler/JJR/cooler weather/NN/weather associated/VBN/assoc
    iate with/IN/with the/DT/the rain/NN/rain ,/,/, snow/NN/snow and/CC/and freezing
    /VBG/freeze temperatures/NNS/temperature at/IN/at night/NN/night helped/VBD/help
    exhausted/VBN/exhaust firefighters/NNS/firefighter claimvictory/VBP/claimvictor
    y over/IN/over raging/VBG/rage wildfires/NNS/wildfire in/IN/in the/DT/the past/J
    J/past days/NNS/day ,/,/, Tuttle/NNP/Tuttle said/VBD/say ,/,/, adding/VBG/add th
    at/IN/that “/”/” the/DT/the weather/NN/weather continues/VBZ/continue to/TO/to b
    e/VB/be healthy/JJ/healthy for/IN/for us/PRP/us ././. “/”/” About/IN/About half/
    NN/half of/IN/of the/DT/the 14/CD/14 ,/,/, 000/CD/000 firefighters/NNS/firefight
    er remained/VBD/remain in/IN/in the/DT/the front/NN/front tocombat/NN/tocombat f
    orest/NN/forest fires/NNS/fire in/IN/in an/DT/an area/NN/area ranging/VBG/rang f
    rom/IN/from San/NNP/San Diego/NNP/Diego to/TO/to San/NNP/San Bernardion/NNP/Bern
    ardion in/IN/in southern/JJ/southern California/NNP/California till/IN/till Mond
    ay/NNP/Monday ././.

    The/DT/The Old/NNP/Old Fire/NNP/Fire ,/,/, the/DT/the last/JJ/last of/IN/of the/
    DT/the wildfires/NNS/wildfire that/IN/that once/RB/once threatened/VBN/threaten
    the/DT/the populous/JJ/populous ski/NN/ski resort/NN/resort of/IN/of Lake/NNP/La
    ke Big/NNP/Big Bear/NNP/Bear in/IN/in the/DT/the San/NNP/San Bernardino/NNP/Bern
    ardino Mountains/NNPS/Mountain ,/,/, was/VBD/be 83/CD/83 percent/NN/percent cont
    ained/VBD/contain ././.

    Fire/NNP/Fire engine/NN/engine crews/NNS/crew sprayed/VBN/spray smoky/JJ/smoky s
    pots/NNS/spot in/IN/in some/DT/some charred/JJ/charred areas/NNS/area ,/,/, and/
    CC/and utility/NN/utility crews/NNS/crew restrung/VBN/restring lines/NNS/line to
    /TO/to restore/VB/restore power/NN/power ././.

    More/RBR/More than/IN/than 27/CD/27 ,/,/, 000/CD/000 people/NNS/people of/IN/of
    about/IN/about 80/CD/80 ,/,/, 000/CD/000 evacuees/NNS/evacuee remained/VBD/remai
    n displaced/VBN/displace ,/,/, most/RBS/most of/IN/of whom/WP/whom are/VBP/be fr
    om/IN/from the/DT/the Lake/NNP/Lake Arrowhead/NNP/Arrowhead area/NN/area ,/,/, w
    here/WRB/where all/DT/all roads/NNS/road west/NN/west of/IN/of state/NN/state Hi
    ghway/NNP/Highway 18/CD/18 and/CC/and state/NN/state Highway/NNP/Highway 38/CD/3
    8 remained/VBD/remain closed/VBN/close due/JJ/due to/TO/to a/DT/a threat/NN/thre
    at of/IN/of mudslides/NN/mudslide ././.

    Other/JJ/Other areas/NNS/area closed/VBD/close to/TO/to residents/NNS/resident M
    onday/NNP/Monday include/VBP/include Crestline/NNP/Crestline ,/,/, Lake/NNP/Lake
    Gregory/NNP/Gregory ,/,/, Twin/NNP/Twin Peaks/NNP/Peak ,/,/, Rimforest/NNP/Rimf
    orest ,/,/, Blue/NNP/Blue Jay/NNP/Jay ,/,/, Cedar/NNP/Cedar Glen/NNP/Glen ,/,/,
    Skyforest/NNP/Skyforest ,/,/, Running/VBG/Run Springs/NNP/Spring ,/,/, Arrowbear
    /NNP/Arrowbear Lake/NNP/Lake ,/,/, and/CC/and Green/NNP/Green Valley/NNP/Valley
    Lake/NNP/Lake ././.

    ————– Jists text (Verb-Subj-Obj-Obj) ———–

    (NX California/NNP ‘s/POS officials/NNS NX) (VX were/VBD VX) (NX optimistic/JJ M
    onday/NNP NX) about/IN (NX the/DT full/JJ containment/NN NX) of/IN (NX the/DT de
    vastating/JJ wildfires/NNS NX) (NX that/WDT held/VBD 27/CD ,/, 000/CD NX) (NX US
    /PRP NX) (NX residents/NNS NX) (VX displaced/VBN VX) in/IN (NX southern/JJ Calif
    ornia/NNP NX) ./.
    (NX All/DT fires/NNS NX) (VX were/VBD expected/VBN to/TO be/VB VX) (VX surrounde
    d/VBN VX) by/IN (NX Tuesday/NNP NX) ,/, if/IN not/RB by/IN (NX Monday/NNP evenin
    g/NN NX) ,/, (VX said/VBD VX) (NX Andrea/NNP Tuttle/NNP ,/, director/NN NX) of/I
    N (NX the/DT California/NNP Department/NNP NX) of/IN (NX Forestry/NNP and/CC Fir
    e/NNP Protection/NNP NX) ./.
    (VX Continued/VBN VX) (NX cooler/JJR weather/NN NX) (VX associated/VBN VX) with/
    IN (NX the/DT rain/NN ,/, snow/NN and/CC freezing/VBG temperatures/NNS NX) at/IN
    (NX night/NN NX) (VX helped/VBD exhausted/VBN VX) (NX firefighters/NNS NX) (VX
    claimvictory/VBP VX) over/IN (VX raging/VBG VX) (NX wildfires/NNS NX) in/IN (NX
    the/DT past/JJ days/NNS ,/, Tuttle/NNP NX) (VX said/VBD VX) ,/, (VX adding/VBG V
    X) that/IN “/” (NX the/DT weather/NN NX) (VX continues/VBZ to/TO be/VB VX) (NX h
    ealthy/JJ NX) for/IN (NX us/PRP NX) ./. “/” About/IN (NX half/NN NX) of/IN (NX t
    he/DT 14/CD ,/, 000/CD firefighters/NNS NX) (VX remained/VBD VX) in/IN (NX the/D
    T front/NN tocombat/NN forest/NN fires/NNS NX) in/IN (NX an/DT area/NN NX) (VX r
    anging/VBG VX) from/IN (NX San/NNP Diego/NNP NX) to/TO (NX San/NNP Bernardion/NN
    P NX) in/IN (NX southern/JJ California/NNP NX) till/IN (NX Monday/NNP NX) ./.
    (NX The/DT Old/NNP Fire/NNP NX) ,/, the/DT (NX last/JJ NX) of/IN (NX the/DT wild
    fires/NNS NX) that/IN (VX once/RB threatened/VBN VX) (NX the/DT populous/JJ ski/
    NN resort/NN NX) of/IN (NX Lake/NNP Big/NNP Bear/NNP NX) in/IN (NX the/DT San/NN
    P Bernardino/NNP Mountains/NNPS ,/, was/VBD 83/CD percent/NN NX) (VX contained/V
    BD VX) ./.
    (NX Fire/NNP engine/NN crews/NNS NX) (VX sprayed/VBN VX) (NX smoky/JJ spots/NNS
    NX) in/IN (NX some/DT charred/JJ areas/NNS ,/, and/CC utility/NN crews/NNS restr
    ung/VBN lines/NNS NX) to/TO (VX restore/VB VX) (NX power/NN NX) ./.
    More/RBR than/IN (NX 27/CD ,/, 000/CD people/NNS NX) of/IN about/IN (NX 80/CD ,/
    , 000/CD evacuees/NNS NX) (VX remained/VBD displaced/VBN VX) ,/, most/RBS of/IN
    (NX whom/WP NX) (VX are/VBP VX) from/IN (NX the/DT Lake/NNP Arrowhead/NNP area/N
    N NX) ,/, where/WRB (NX all/DT roads/NNS west/NN NX) of/IN (NX state/NN Highway/
    NNP 18/CD and/CC state/NN Highway/NNP 38/CD NX) (VX remained/VBD closed/VBN VX)
    (NX due/JJ NX) to/TO (NX a/DT threat/NN NX) of/IN (NX mudslides/NN NX) ./.
    (NX Other/JJ areas/NNS NX) (VX closed/VBD VX) to/TO (NX residents/NNS Monday/NNP
    NX) (VX include/VBP VX) (NX Crestline/NNP ,/, Lake/NNP Gregory/NNP ,/, Twin/NNP
    Peaks/NNP ,/, Rimforest/NNP ,/, Blue/NNP Jay/NNP ,/, Cedar/NNP Glen/NNP ,/, Sky
    forest/NNP NX) ,/, (VX Running/VBG VX) (NX Springs/NNP ,/, Arrowbear/NNP Lake/NN
    P ,/, and/CC Green/NNP Valley/NNP Lake/NNP NX) ./.
    (“be” “California ‘s official” “optimistic Monday” “about full containment” “of
    devastating wildfire”)
    (“displace” “resident” “in southern California”)

    (“be” “fire” )
    (“surround” “” “by Tuesday”)
    (“say” “” “Andrea Tuttle director” “of California Department” “of Forestry and F
    ire Protection”)

    (“Continue” “” “cooler weather”)
    (“associate” “cooler weather” “with rain snow and freeze temperature” “at night”
    )
    (“exhaust” “night” “firefighter”)
    (“claimvictory” “firefighter” )
    (“rage” “” “wildfire” “in past day Tuttle”)
    (“say” “past day Tuttle” )
    (“add” “” )
    (“be” “weather” “healthy” “for us”)
    (“remain” “14 000 firefighter” “in front tocombat forest fire” “in area”)
    (“rang” “area” “from San Diego” “to San Bernardion” “in southern California” “ti
    ll Monday”)

    (“threaten” “” “populous ski resort” “of Lake Big Bear” “in San Bernardino Mount
    ain be 83 percent”)
    (“contain” “San Bernardino Mountain be 83 percent” )

    (“spray” “Fire engine crew” “smoky spot” “in charred area and utility crew restr
    ing line”)
    (“restore” “” “power”)

    (“displace” “80 000 evacuee” )
    (“be” “whom” “from Lake Arrowhead area”)
    (“close” “state Highway 18 and state Highway 38″ “due” “to threat” “of mudslide”
    )

    (“close” “Other area” “to resident Monday”)
    (“include” “resident Monday” “Crestline Lake Gregory Twin Peak Rimforest Blue Jay Cedar Glen Skyforest”)
    (“Run” “” “Spring Arrowbear Lake and Green Valley Lake”)

    java>

    Reply
  9. drjohn

    Could you be more specific with your question?

    If after rebuilding montylingua.jar, you copy the files:

    montylingua.jar
    Sample.class
    *.MDF

    into a new directory, go to that directory, and run
    java -cp .;montyingua.jar Sample

    you should see results as mentioned.

    If you want the run the PYTHON version of the tool, see the run.bat file included in the original code by the owner of this blog… :-)

    DrJohn

    Reply
  10. Valls

    I was just writing to give you kudos on your initiative.
    I share the view of forks being confusing, but this is completely off topic since you are actually continuing a project that seems dead otherwise, plus I found some bugs myself.
    I think that somehow forks should be centralized somehow. Maybe yours should be listed somehow here:
    http://pypi.python.org/pypi/MontyLingua/2.1
    (and I think that the packaging should be fixed to avoid path problems, plus provide some documentation)

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>