Git Product home page Git Product logo

Comments (8)

rahulbot avatar rahulbot commented on August 19, 2024

Hi - I'm still learning about mvn modules, but I don't think you need to run mvn in the child directories. The top-level pom.xml will build the child projects for you. I run this in the top-level directory and it compiles fine:
mvn clean mvn package -DskipTests
This generates a war for me in webapp/target/cliff-2.3.0.war.

Once you deploy the war, you can hit one of the api methods to see results. The root url doesn't return anything at all.

As the README says, try hitting this url to test it:

http://localhost:8080/cliff-2.3.0/parse/text?q=This is some text about New York City, and maybe about Accra as well, and maybe Boston as well.

Does that url work?

from cliff-annotator.

dbl001 avatar dbl001 commented on August 19, 2024

The URL didn’t work. btw- I had to do $ mvn install go get the stanford NLP .jars.

The CLIFF file is already in my Tomcat directory: /usr/local/apache-tomcat-8.0.24/webapps

David-Laxers-MacBook-Pro:webapps davidlaxer$ file cliff-2.3.0.war
cliff-2.3.0.war: Zip archive data, at least v1.0 to extract
David-Laxers-MacBook-Pro:webapps davidlaxer$ pwd
/usr/local/apache-tomcat-8.0.24/webapps
David-Laxers-MacBook-Pro:webapps davidlaxer$ ls -l
total 254304
drwxr-xr-x@ 19 davidlaxer staff 646 Jul 1 13:23 ROOT
drwxr-xr-x 4 davidlaxer staff 136 Aug 25 18:53 cliff-2.3.0
-rw-r--r-- 1 root staff 130200897 Aug 25 18:53 cliff-2.3.0.war
drwxr-xr-x@ 55 davidlaxer staff 1870 Jul 1 13:23 docs
drwxr-xr-x@ 7 davidlaxer staff 238 Jul 1 13:23 examples
drwxr-xr-x@ 7 davidlaxer staff 238 Jul 1 13:23 host-manager
drwxr-xr-x@ 8 davidlaxer staff 272 Jul 1 13:23 manager
David-Laxers-MacBook-Pro:webapps davidlaxer$

On Sep 1, 2015, at 11:24 AM, rahulbot [email protected] wrote:

Hi - I'm still learning about mvn modules, but I don't think you need to run mvn in the child directories. The top-level pom.xml will build the child projects for you. I run this in the top-level directory and it compiles fine:

mvn clean
mvn package -DskipTests

This generates a war for me in webapp/target/cliff-2.3.0.war.

Once you deploy the war, you can hit one of the api methods to see results. The root url doesn't return anything at all.

As the README says, try hitting this url to test it:

http://localhost:8080/cliff-2.3.0/parse/text?q=This is some text about New York City, and maybe about Accra as well, and maybe Boston as well.

Does that url work?


Reply to this email directly or view it on GitHub #42 (comment).

from cliff-annotator.

dbl001 avatar dbl001 commented on August 19, 2024

mvn = pain;

On Sep 1, 2015, at 11:24 AM, rahulbot [email protected] wrote:

Hi - I'm still learning about mvn modules, but I don't think you need to run mvn in the child directories. The top-level pom.xml will build the child projects for you. I run this in the top-level directory and it compiles fine:

mvn clean
mvn package -DskipTests

This generates a war for me in webapp/target/cliff-2.3.0.war.

Once you deploy the war, you can hit one of the api methods to see results. The root url doesn't return anything at all.

As the README says, try hitting this url to test it:

http://localhost:8080/cliff-2.3.0/parse/text?q=This is some text about New York City, and maybe about Accra as well, and maybe Boston as well.

Does that url work?


Reply to this email directly or view it on GitHub.

from cliff-annotator.

rahulbot avatar rahulbot commented on August 19, 2024

Do you see anything useful in your catalina log when you it the parse/text url?

from cliff-annotator.

dbl001 avatar dbl001 commented on August 19, 2024

Hold on! Does this mean it’s working?

{"milliseconds":66,"version":"2.3.0","results":{"places":{"mentions":[],"focus":{}},"organizations":[],"people":[]},"status":"ok"}

On Sep 1, 2015, at 11:42 AM, rahulbot [email protected] wrote:

Do you see anything useful in your catalina log when you it the parse/text url?


Reply to this email directly or view it on GitHub #42 (comment).

from cliff-annotator.

rahulbot avatar rahulbot commented on August 19, 2024

Yep, that means it found no results (and likely results an empty JSON array in your browser). That seems like you didn't send in any place names in the url. Did you give it something like this?

http://localhost:8080/cliff-2.3.0/parse/text?q=This is some text about New York City

from cliff-annotator.

dbl001 avatar dbl001 commented on August 19, 2024

So, how do I verify CLIFF is working in the Phoenix_pipeline?

PHOX_config.ini:

[Server]
server_name = 52.8.16.250
username = david
password = moose
server_dir = /
cliff_host = localhost
cliff_port = 8080

David-Laxers-MacBook-Pro:phoenix_pipeline davidlaxer$ python pipeline.py

Requires eGenix.com mx Base Distribution
http://www.egenix.com/products/python/mxBase/
Found a config file in working directory

PHOX.pipeline run: 2015-09-01 18:58:37.771528
Date string: 20150831
Total number of stories: 0
Running Mongo.formatter.py
Running PETRARCH and writing to a file. No one-a-day.

new_actor_length = 0
stop_on_error = False
write_actor_root = False
write_actor_text = False
require_dyad = True
code-by-sentence True
pause_by_sentence False
pause_by_story False
Comma-delimited clause elimination:
Initial : deactivated
Internal: min = 2 max = 8
Terminal: min = 2 max = 8
Verb dictionary: CAMEO.verbpatterns.140901.txt
Actor dictionaries: [u'Phoenix.Countries.actors.txt', u'Phoenix.International.actors.txt', u'Phoenix.MilNonState.actors.txt']
Agent dictionary: Phoenix.agents.txt
Discard dictionary: Phoenix.discards.txt
Issues dictionary: Phoenix.IssueCoding.txt
Summary:
Stories read: 0 Sentences coded: 0 Events generated: 0
Discards: Sentence 0 Story 0 Sentences without events: 0
Running result_formatter.py
Running postprocess.py
Geolocating
Finished
Running phox_uploader.py
Login to 52.8.16.250 unsuccessful.
Error on the uploader. This step isn't absolutely necessary.
Valid events should still be generated.
PHOX.pipeline end: 2015-09-01 18:59:55.752457
David-Laxers-MacBook-Pro:phoenix_pipeline davidlaxer$

$ mvn test:

...

[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.16:test (default-test) @ cliff ---
[INFO] No tests to run.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] CLIFF ............................................. SUCCESS [ 0.003 s]
[INFO] common ............................................ SUCCESS [ 1.598 s]
[INFO] stanford-entity-extractor ......................... SUCCESS [ 47.719 s]
[INFO] cliff ............................................. SUCCESS [ 0.109 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 49.594 s
[INFO] Finished at: 2015-09-01T11:52:19-08:00
[INFO] Final Memory: 9M/180M
[INFO] ————————————————..

{"milliseconds":5988,"version":"2.3.0","results":{"places":{"mentions":[{"featureCode":"PPL","featureClass":"P","confidence":1.0,"lon":-74.00597,"countryGeoNameId":"6252001","source":{"charIndex":24,"string":"New York City"},"population":8175133,"stateGeoNameId":"5128638","countryCode":"US","name":"New York City","stateCode":"NY","id":5128581,"lat":40.71427}],"focus":{"cities":[{"score":1,"featureCode":"PPL","stateGeoNameId":"5128638","featureClass":"P","countryCode":"US","name":"New York City","lon":-74.00597,"countryGeoNameId":"6252001","stateCode":"NY","id":5128581,"lat":40.71427,"population":8175133}],"countries":[{"score":1,"featureCode":"PCLI","stateGeoNameId":"","featureClass":"A","countryCode":"US","name":"United States","lon":-98.5,"countryGeoNameId":"6252001","stateCode":"00","id":6252001,"lat":39.76,"population":310232863}],"states":[{"score":1,"featureCode":"ADM1","stateGeoNameId":"5128638","featureClass":"A","countryCode":"US","name":"New York","lon":-75.4999,"countryGeoNameId":"6252001","stateCode":"NY","id":5128638,"lat":43.00035,"population":19274244}]}},"organizations":[],"people":[]},"status":"ok"}

On Sep 1, 2015, at 11:45 AM, David Laxer [email protected] wrote:

Hold on! Does this mean it’s working?

{"milliseconds":66,"version":"2.3.0","results":{"places":{"mentions":[],"focus":{}},"organizations":[],"people":[]},"status":"ok"}

<Screen Shot 2015-09-01 at 11.45.16 AM.png>

On Sep 1, 2015, at 11:42 AM, rahulbot <[email protected] mailto:[email protected]> wrote:

Do you see anything useful in your catalina log when you it the parse/text url?


Reply to this email directly or view it on GitHub #42 (comment).

from cliff-annotator.

rahulbot avatar rahulbot commented on August 19, 2024

Look like CLIFF is working - since you're getting JSON results now. I don't know anything about how to integrate it with the phoenix pipeline - sorry! You'll have to check with them about that. I'm gonna close this because it is running for you.

from cliff-annotator.

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.