Comments (2)
This already exists at https://github.com/openeventdata/petrarch2/blob/master/petrarch2/data/config/PETR_config.ini. Additionally, the deployed version of the pipeline has always specified a separate config file for PETR with the dictionaries living in a top-level directory. You can see how you'd hit that at https://github.com/openeventdata/petrarch2/blob/master/petrarch2/petrarch2.py#L530. The built in dictionaries are included so people can download and run as-is without having to hunt for dictionaries as well.
If this isn't clear in the documentation/user guides then it should be called out in greater detail. In other words, I think this is a docs issue rather than a feature issue.
from petrarch2.
But there's a bigger issue here that goes way beyond just the dictionaries: there's quite a bit of CAMEO-specific code in Petrarch-2, e.g. the fairly complex system by which certain word combinations modify the event code, then the conversion of the internal representation of the code to CAMEO via the utilities.convert_code()
function. This was not the case in Petrarch-1, TABARI or KEDS, but was the case in the VRA-Reader and, as far as I know, ICEWS/Accent. Which is to say, the problem has been solved both ways.
My inclination (obviously...) is that the coder should be completely neutral to the coding system, but that's not what we've got at the moment in Petrarch-2, and getting there would require an extensive rewrite, and probably would best be done by adding some sort of macro facility to the dictionaries . That would be a "good thing" (TM) and TABARI came pretty close to having this, though it was never really used in working dictionaries, and Petrarch-2 already has a limited version as well.
Possibly the place to figure this out, however, is in deciding how the dependency-based version of the program is going to work.
from petrarch2.
Related Issues (20)
- Adding information to 'meta' when expanding cooperating compounds HOT 1
- Add documentation and unit tests to output from #6 HOT 4
- Strange output format for phrase extraction. HOT 2
- Does Petrarch2 take care of Event Coreference Resolution? HOT 4
- Strict documentation/freezing of parse tree input is needed HOT 2
- how do i include custom dictionary in petrarch(2)? HOT 1
- Finish writing error messages to log rather than using print() HOT 1
- Config file and parsing for NullVerbs and NullActors HOT 1
- Incorrect Command line Parsing Function: parse_cli_args HOT 2
- make_plural_noun(noun) function when reading verb dictionary HOT 1
- Install instructions reference incorrect petrarch version HOT 3
- Add a Contribute section to README HOT 2
- GigaWord.sample.PETR.xml file without parse blocks HOT 8
- Make petrarch2 output more JSON friendly HOT 4
- When to add a pipe ‘|’
- ImportError: No module named 'PETRglobals' HOT 1
- Date comparison bug HOT 1
- Bug in generating text
- Adapting new Treebank format
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from petrarch2.