Git Product home page Git Product logo

Comments (2)

rossmounce avatar rossmounce commented on August 15, 2024

re-tried with the plos one sample supplied at the ami-plugin repo:

workshop@crunchbang:~/ami-plugin$ cp -R src/test/resources/org/xmlcml/ami2/plosone/journal.pone.0115884/ target/test0115884
$ cd target/test0115884/journal.pone.0115884
$ ami2-species --sp.species --context 35 --sp.type binomial binomialsp -q . -i scholarly.html --lookup wikipedia
0    [main] ERROR org.xmlcml.ami2.plugins.AMIArgProcessor  - unknown optionType: binomialsp; skipped
1397 [main] ERROR org.xmlcml.ami2.lookups.WikipediaLookup  - null species
1662 [main] DEBUG org.xmlcml.ami2.plugins.AMIArgProcessor  - final lookup
$ ls
fromnorma.html          fulltext.nodtd.html  results
fulltext.html           fulltext.pdf         results.json
fulltext.manually.html  fulltext.xml         scholarly.html
workshop@crunchbang:~/ami-plugin/target/test0115884/journal.pone.0115884$ cat results/species/binomial/results.xml 
<?xml version="1.0" encoding="UTF-8"?>
<results title="binomial">
 <result pre="ibe a new species of fanged frog ( " exact="Limnonectes larvaepartus" match="Limnonectes larvaepartus" post=" ) that is unique among anurans in " name="binomial"/>
 <result pre=" now extinct Puerto Rican species, " exact="Eleutherodactylus jasperi" match="Eleutherodactylus jasperi" post=" , are documented to combine intern" name="binomial"/>
 <result pre="14238 E, 89 m elev.); ( b ) " exact="Limnonectes larvaepartus" match="Limnonectes larvaepartus" post=" female (MVZ 268426) with tadpoles " name="binomial"/>
 <result pre="/i&gt; ) An in situ adult male " exact="L. larvaepartus" match="Limnonectes larvaepartus" post=" (JAM 14234) observed calling while" name="binomial"/>
 <result pre="ay from a 2 m wide stream; several " exact="L. larvaepartus" match="Limnonectes larvaepartus" post=" tadpoles were present in the pool " name="binomial"/>
 <result pre="sal and ventral views of ∼stage 25 " exact="L. larvaepartus" match="Limnonectes larvaepartus" post=" tadpoles (JAM 14271) released by a" name="binomial"/>
 <result pre=" in the literature under the names " exact="Limnonectes larviparus" match="Limnonectes larviparus" post=" [11] and Limnonectes &quot;ovovi" name="binomial"/>
 <result pre=" " exact="Limnonectes larvaepartus" match="Limnonectes larvaepartus" post=" occurs across the Northern Peninsu" name="binomial"/>
 <result pre="al region (e.g. the flying lizards " exact="Draco spilonotus" match="Draco spilonotus" post=" and D. walker [12] , the fa" name="binomial"/>
 <result pre="izards Draco spilonotus and " exact="D. walker" match="Draco walker" post=" [12] , the fanged frogs Limnone" name="binomial"/>
 <result pre="p. D [3] , and the tarsiers " exact="Tarsius lariang" match="Tarsius lariang" post=" and T. dentatus [13] . " name="binomial"/>
 <result pre="arsiers Tarsius lariang and " exact="T. dentatus" match="Tarsius dentatus" post=" [13] . " name="binomial"/>
 <result pre="shows the phylogenetic position of " exact="L. larvaepartus" match="Limnonectes larvaepartus" post=" , with different symbol shapes den" name="binomial"/>
 <result pre="ies (type locality: Flores Island) " exact="L. dammermani" match="Limnonectes dammermani" post=" (Mertens, 1927), the Bornean speci" name="binomial"/>
 <result pre="ertens, 1927), the Bornean species " exact="L. finchii" match="Limnonectes finchii" post=" (Inger, 1966), the Mollucan specie" name="binomial"/>
 <result pre="can species (type locality: Ambon) " exact="L. grunniens" match="Limnonectes grunniens" post=" (Daudin, 1801), and the Philippine" name="binomial"/>
 <result pre="in, 1801), and the Philippine taxa " exact="L. leytensis" match="Limnonectes leytensis" post=" (Boettger, 1893), L. magnus" name="binomial"/>
 <result pre="L. leytensis (Boettger, 1893), " exact="L. magnus" match="Limnonectes magnus" post=" (Stejneger, 1909), and L. palav" name="binomial"/>
 <result pre=" magnus (Stejneger, 1909), and " exact="L. palavanensis" match="Limnonectes palavanensis" post=" (Boulenger, 1894). These names sho" name="binomial"/>
 <result pre="awesi species have been described: " exact="L. arathooni" match="Limnonectes arathooni" post=" (Smith, 1927), L. heinrichi" name="binomial"/>
 <result pre="L. arathooni (Smith, 1927), " exact="L. heinrichi" match="Limnonectes heinrichi" post=" (Ahl, 1933), L. modestus (B" name="binomial"/>
 <result pre=", L. heinrichi (Ahl, 1933), " exact="L. modestus" match="Limnonectes modestus" post=" (Boulenger, 1882), and L. micro" name="binomial"/>
 <result pre="odestus (Boulenger, 1882), and " exact="L. microtympanum" match="Limnonectes microtympanum" post=" (van Kampen, 1909). However, we wi" name="binomial"/>
 <result pre="wever, we will show elsewhere that " exact="L. heinrichi" match="Limnonectes heinrichi" post=" is a junior synonym of L. modes" name="binomial"/>
 <result pre="inrichi is a junior synonym of " exact="L. modestus" match="Limnonectes modestus" post=" and the species complex that we ha" name="binomial"/>
 <result pre="eferred to previously [2] , [3] as " exact="L. modestus" match="Limnonectes modestus" post=" remains undescribed – thus, at pre" name="binomial"/>
 <result pre=" " exact="Limnonectes larvaepartus" match="Limnonectes larvaepartus" post=" can be distinguished from all othe" name="binomial"/>
 <result pre="phylogenetic placement ( Fig. 3 ). " exact="Limnonectes arathooni" match="Limnonectes arathooni" post=" is endemic to Sulawesi's Southwest" name="binomial"/>
 <result pre="does not occur within the range of " exact="L. larvaepartus" match="Limnonectes larvaepartus" post=" . It is similar in size to the new" name="binomial"/>
 <result pre="eep stream-side embankments [14] . " exact="Limnonectes microtympanum" match="Limnonectes microtympanum" post=" , like L. arathooni , is re" name="binomial"/>
 <result pre="mnonectes microtympanum , like " exact="L. arathooni" match="Limnonectes arathooni" post=" , is restricted to the SW Peninsul" name="binomial"/>
 <result pre="overlap in geographical range with " exact="L. larvaepartus" match="Limnonectes larvaepartus" post=" . Limnonectes microtympanum" name="binomial"/>
 <result pre="ange with L. larvaepartus . " exact="Limnonectes microtympanum" match="Limnonectes microtympanum" post=" is moderately large (male SVL = 78" name="binomial"/>
 <result pre=" much larger than the new species. " exact="Limnonectes microtympanum" match="Limnonectes microtympanum" post=" also differs from the new species " name="binomial"/>
 <result pre="u_UNKNOWN&quot;&gt;+ 0.01 in both sexes in " exact="L. larvaepartus" match="Limnonectes larvaepartus" post=" ). The new species occurs in broad" name="binomial"/>
 <result pre="cies occurs in broad sympatry with " exact="L. modestus" match="Limnonectes modestus" post=" , which is a moderate sized (male " name="binomial"/>
 <result pre="eams and substantially larger than " exact="L. larvaepartus" match="Limnonectes larvaepartus" post=" . Like L. larvaepartus , &lt;i" name="binomial"/>
 <result pre="than L. larvaepartus . Like " exact="L. larvaepartus" match="Limnonectes larvaepartus" post=" , L. modestus has nearly co" name="binomial"/>
 <result pre="i&gt; . Like L. larvaepartus , " exact="L. modestus" match="Limnonectes modestus" post=" has nearly complete hindfoot webbi" name="binomial"/>
 <result pre="ebbing (slightly more extensive in " exact="L. modestus" match="Limnonectes modestus" post=" than in L. larvaepartus but" name="binomial"/>
 <result pre="sive in L. modestus than in " exact="L. larvaepartus" match="Limnonectes larvaepartus" post=" but reaching the toe disc in both " name="binomial"/>
 <result pre=" region (in a clear wedge shape in " exact="L. modestus" match="Limnonectes modestus" post=" , more randomly distributed in " name="binomial"/>
 <result pre="/i&gt; , more randomly distributed in " exact="L. larvaepartus" match="Limnonectes larvaepartus" post=" ), and skin with extensive fine gr" name="binomial"/>
 <result pre="extensive fine granular tubercles. " exact="Limnonectes modestus" match="Limnonectes modestus" post=" also exhibits a derived reproducti" name="binomial"/>
 <result pre=" " exact="Limnonectes larvaepartus" match="Limnonectes larvaepartus" post=" occurs in natural and disturbed fo" name="binomial"/>
 <result pre=" of Sulawesi, we have always found " exact="L. larvaepartus" match="Limnonectes larvaepartus" post=" living in sympatry with a much lar" name="binomial"/>
 <result pre="the banks of fast-flowing streams, " exact="L. larvaepartus" match="Limnonectes larvaepartus" post=" is usually found further from the " name="binomial"/>
 <result pre="monectes , it is possible that " exact="L. larvaepartus" match="Limnonectes larvaepartus" post=" avoids large streams in response t" name="binomial"/>
 <result pre="r Limnonectes species. Male " exact="L. larvaepartus" match="Limnonectes larvaepartus" post=" typically call from the margins of" name="binomial"/>
 <result pre="ols that were already inhabited by " exact="L. larvaepartus" match="Limnonectes larvaepartus" post=" tadpoles ( Fig. 2 c ), wi" name="binomial"/>
 <result pre="f the unusual reproductive mode of " exact="Limnonectes larvaepartus" match="Limnonectes larvaepartus" post=" while conducting fieldwork on Sula" name="binomial"/>
 <result pre="r other occasions, field-collected " exact="L. larvaepartus" match="Limnonectes larvaepartus" post=" in our possession gave birth to ta" name="binomial"/>
 <result pre="des are possible for this species. " exact="Limnonectes larvaepartus" match="Limnonectes larvaepartus" post=" reproduction may simply reflect wh" name="binomial"/>
 <result pre="th of froglets, as is the case for " exact="Eleutherodactylus jasperi" match="Eleutherodactylus jasperi" post=" and members of the African bufonid" name="binomial"/>
 <result pre="least four clutches of free-living " exact="L. larvaepartus" match="Limnonectes larvaepartus" post=" tadpoles in small pools of water o" name="binomial"/>
 <result pre="ted for a single direct-developer, " exact="Eleutherodactylus coqui" match="Eleutherodactylus coqui" post=" [20] . In the case of E. coqui&lt;" name="binomial"/>
 <result pre="us coqui [20] . In the case of " exact="E. coqui" match="Eleutherodactylus coqui" post=" , the capacity for early hatching " name="binomial"/>
 <result pre="e 15 (see [21] for staging). Thus, " exact="E. coqui" match="Eleutherodactylus coqui" post=" were capable of premature hatching" name="binomial"/>
 <result pre="ch later than would be required by " exact="L. larvaepartus" match="Limnonectes larvaepartus" post=" if it were simultaneously capable " name="binomial"/>
 <result pre="n for swimming, as is the case for " exact="Eleutherodactylus jasperi" match="Eleutherodactylus jasperi" post=" [17] , and may lack mouthparts and" name="binomial"/>
 <result pre="ree-living. Although we think that " exact="L. larvaepartus" match="Limnonectes larvaepartus" post=" is much more likely to give birth " name="binomial"/>
 <result pre="nique among Anura. In either case, " exact="L. larvaepartus" match="Limnonectes larvaepartus" post=" requires internal fertilization, w" name="binomial"/>
 <result pre="t to facilitate sperm transfer. If " exact="L. larvaepartus" match="Limnonectes larvaepartus" post=" reproduction always involves birth" name="binomial"/>
</results>

from ami.

petermr avatar petermr commented on August 15, 2024

We should pre-annotate dictionaries with Lookup so it isn't done dynamically.

from ami.

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.