Increased cases of incorrect POS errors in Stanford Core NLP v4.0.0 - stanford-nlp

Ive just tried out v4.0.0
Can anyone comment on the following issues?
1/ it makes lots of mistakes on the POS for the start of sentences
But the dependency parser is still looking correct.
2/ Parser often creates more 'dep' dependencies (which are effectively errors)
I tried to compare this to online demos to see if its the same
They always seem to be down now - but corenlp.run was showing same errors.
e.g.
Using:
edu/stanford/nlp/models/parser/nndep/english_UD.gz ...
edu/stanford/nlp/models/pos-tagger/english-left3words-distsim.tagger
A/ POS errors
"He always updates the maps"
-> updates/NNS (root)
-> He/PRP (nsubj)
-> always/RB (advmod)
-> maps/NNS (obj)
-> the/DT (det)
B/ Seems to often treat a JJR as the root as a RBR
eg.
"the car is faster"
-> faster/RBR (root)
-> car/NN (nsubj)
-> the/DT (det)
-> is/VBZ (cop)

Related

Cycle inside ARVideoKit; building could produce unreliable results

I have encountered the issue while building a project in Xcode. It says "Cycle inside ARVideoKit; building could produce unreliable results. This usually can be resolved by moving the target's Headers build phase Compile Sources."
I've done so by looking into the build orders of ARVideoKit, I've moved the Headers in front of compile Sources. But the issue still persists.
Any tips would be greatly appreacited.
Below are the detailed error messages:
Showing Recent Messages
Cycle inside ARVideoKit; building could produce unreliable results. This usually can be resolved by moving the target's Headers build phase before Compile Sources.
Cycle details:
→ Target 'ARVideoKit' has link command with output '/Users/richardmac/Library/Developer/Xcode/DerivedData/AR_Remote_Support-aaanobrrwbejkycmcyjzmsmrwiic/Build/Products/Debug-iphoneos/ARVideoKit.framework/ARVideoKit'
○ Target 'ARVideoKit' has compile command with input '/Users/richardmac/Library/Developer/Xcode/DerivedData/AR_Remote_Support-aaanobrrwbejkycmcyjzmsmrwiic/Build/Intermediates.noindex/ARVideoKit.build/Debug-iphoneos/ARVideoKit.build/DerivedSources/ARVideoKit_vers.c'
○ Target 'ARVideoKit' has compile command for Swift source files
○ Target 'ARVideoKit' has copy command from '/Users/richardmac/Documents/GitHub/ARVideoKit/ARVideoKit/ARVideoKit.h' to '/Users/richardmac/Library/Developer/Xcode/DerivedData/AR_Remote_Support-aaanobrrwbejkycmcyjzmsmrwiic/Build/Products/Debug-iphoneos/ARVideoKit.framework/Headers/ARVideoKit.h'
Raw dependency cycle trace:
target: ->
node: <all> ->
command: <all> ->
node: /Users/richardmac/Library/Developer/Xcode/DerivedData/AR_Remote_Support-aaanobrrwbejkycmcyjzmsmrwiic/Build/Products/Debug-iphoneos/ARVideoKit.framework/ARVideoKit ->
command: target-ARVideoKit-2bded4ab62199ada5f79527c1e5e4d0e2e48c26ea4c59645a2f99f2829476ecd-:Debug:Ld /Users/richardmac/Library/Developer/Xcode/DerivedData/AR_Remote_Support-aaanobrrwbejkycmcyjzmsmrwiic/Build/Products/Debug-iphoneos/ARVideoKit.framework/ARVideoKit normal ->
CYCLE POINT ->
node: /Users/richardmac/Library/Developer/Xcode/DerivedData/AR_Remote_Support-aaanobrrwbejkycmcyjzmsmrwiic/Build/Intermediates.noindex/ARVideoKit.build/Debug-iphoneos/ARVideoKit.build/Objects-normal/arm64/ARVideoKit_vers.o ->
command: target-ARVideoKit-2bded4ab62199ada5f79527c1e5e4d0e2e48c26ea4c59645a2f99f2829476ecd-:Debug:CompileC /Users/richardmac/Library/Developer/Xcode/DerivedData/AR_Remote_Support-aaanobrrwbejkycmcyjzmsmrwiic/Build/Intermediates.noindex/ARVideoKit.build/Debug-iphoneos/ARVideoKit.build/Objects-normal/arm64/ARVideoKit_vers.o /Users/richardmac/Library/Developer/Xcode/DerivedData/AR_Remote_Support-aaanobrrwbejkycmcyjzmsmrwiic/Build/Intermediates.noindex/ARVideoKit.build/Debug-iphoneos/ARVideoKit.build/DerivedSources/ARVideoKit_vers.c normal arm64 c com.apple.compilers.llvm.clang.1_0.compiler ->
node: <target-ARVideoKit-2bded4ab62199ada5f79527c1e5e4d0e2e48c26ea4c59645a2f99f2829476ecd--generated-headers> ->
command: Gate target-ARVideoKit-2bded4ab62199ada5f79527c1e5e4d0e2e48c26ea4c59645a2f99f2829476ecd--generated-headers ->
node: /Users/richardmac/Library/Developer/Xcode/DerivedData/AR_Remote_Support-aaanobrrwbejkycmcyjzmsmrwiic/Build/Intermediates.noindex/ARVideoKit.build/Debug-iphoneos/ARVideoKit.build/Objects-normal/arm64/UIView+isType.o ->
command: target-ARVideoKit-2bded4ab62199ada5f79527c1e5e4d0e2e48c26ea4c59645a2f99f2829476ecd-:Debug:CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler ->
node: /Users/richardmac/Library/Developer/Xcode/DerivedData/AR_Remote_Support-aaanobrrwbejkycmcyjzmsmrwiic/Build/Products/Debug-iphoneos/ARVideoKit.framework/Headers/ARVideoKit.h ->
command: target-ARVideoKit-2bded4ab62199ada5f79527c1e5e4d0e2e48c26ea4c59645a2f99f2829476ecd-:Debug:CpHeader /Users/richardmac/Library/Developer/Xcode/DerivedData/AR_Remote_Support-aaanobrrwbejkycmcyjzmsmrwiic/Build/Products/Debug-iphoneos/ARVideoKit.framework/Headers/ARVideoKit.h /Users/richardmac/Documents/GitHub/ARVideoKit/ARVideoKit/ARVideoKit.h ->
node: <target-ARVideoKit-2bded4ab62199ada5f79527c1e5e4d0e2e48c26ea4c59645a2f99f2829476ecd--phase0-compile-sources> ->
command: Gate target-ARVideoKit-2bded4ab62199ada5f79527c1e5e4d0e2e48c26ea4c59645a2f99f2829476ecd--phase0-compile-sources ->
node: /Users/richardmac/Library/Developer/Xcode/DerivedData/AR_Remote_Support-aaanobrrwbejkycmcyjzmsmrwiic/Build/Intermediates.noindex/ARVideoKit.build/Debug-iphoneos/ARVideoKit.build/Objects-normal/arm64/ARVideoKit_vers.o

Failed to external entity ".../htmlhelp.xsl"

I'm building a development version of Wireshark to create dissectors, following the tutorial found in their official documentation
I receive two warnings and four errors. The four errors seems to come from the fact this link cannot be loaded. The errors are:
Build FAILED.
"C:\Development\wsbuild64\Wireshark.sln" (default target) (1) ->
"C:\Development\wsbuild64\docbook\developer_guide_chm.vcxproj.metaproj" (default target) (15) ->
"C:\Development\wsbuild64\docbook\developer_guide_chm.vcxproj" (default target) (118) ->
(CustomBuild target) ->
CUSTOMBUILD : warning : failed to load external entity "http://docbook.sourceforge.net/release/xsl/current/htmlhelp/htmlhelp.xsl" [C:\Development\wsbuild64\docbook\developer_guide_chm.vcxproj]
"C:\Development\wsbuild64\Wireshark.sln" (default target) (1) ->
"C:\Development\wsbuild64\docbook\user_guide_chm.vcxproj.metaproj" (default target) (65) ->
"C:\Development\wsbuild64\docbook\user_guide_chm.vcxproj" (default target) (119) ->
CUSTOMBUILD : warning : failed to load external entity "http://docbook.sourceforge.net/release/xsl/current/htmlhelp/htmlhelp.xsl" [C:\Development\wsbuild64\docbook\user_guide_chm.vcxproj]
"C:\Development\wsbuild64\Wireshark.sln" (default target) (1) ->
"C:\Development\wsbuild64\docbook\developer_guide_chm.vcxproj.metaproj" (default target) (15) ->
"C:\Development\wsbuild64\docbook\developer_guide_chm.vcxproj" (default target) (118) ->
(CustomBuild target) ->
CUSTOMBUILD : I/O error : Attempt to load network entity http://docbook.sourceforge.net/release/xsl/current/htmlhelp/htmlhelp.xsl [C:\Development\wsbuild64\docbook\developer_guide_chm.vcxproj]
CUSTOMBUILD : compilation error : file /Development/wireshark/docbook/custom_layer_chm.xsl line 8 element import [C:\Development\wsbuild64\docbook\developer_guide_chm.vcxproj]
"C:\Development\wsbuild64\Wireshark.sln" (default target) (1) ->
"C:\Development\wsbuild64\docbook\user_guide_chm.vcxproj.metaproj" (default target) (65) ->
"C:\Development\wsbuild64\docbook\user_guide_chm.vcxproj" (default target) (119) ->
CUSTOMBUILD : I/O error : Attempt to load network entity http://docbook.sourceforge.net/release/xsl/current/htmlhelp/htmlhelp.xsl [C:\Development\wsbuild64\docbook\user_guide_chm.vcxproj]
CUSTOMBUILD : compilation error : file /Development/wireshark/docbook/custom_layer_chm.xsl line 8 element import [C:\Development\wsbuild64\docbook\user_guide_chm.vcxproj]
2 Warning(s)
4 Error(s)
Time Elapsed 00:00:07.72
When I go to the URL directly, I am taken to a blank page. Going through the directory online I can go up to here, but clicking on "htmlhelp.xsl" brings me back to the blank page.
However, although the VS 2015 CMD says the build failed, an executable version Wireshark is built and I can use it with more or less full functionality.
My main issue is I kept on having errors building a C++ dissector (Lua dissectors work just fine) due to LNK errors. I was thinking, because the build is "incomplete", the issues could be arising from a missing file or such.
Hopefully this will help someone with similar issues.
It turns out the file could not be reached because of the company's proxy settings. I have been using IE and the file would not load.
However, when I used Mozilla Firefox, I was able to download the file. I changed the XSL import address to a local directory containing the downloaded file and the import errors were fixed.

Syntax highlighting for .ctp files with Netbeans+ Cakephp in Mac OS

I code Cakephp with Netbeans in Mac Os. My syntaxs in .ctp file doesn't highlighted(colored). I found the answer but only for Windows :( . How can I do for Mac? Tks!
Firstly you'll want to install the CakePHP plugin for Netbeans.
http://plugins.netbeans.org/plugin/44579/php-cakephp-framework
Then you're done.
Windows: Tools -> Options -> Miscellaneous -> Files -> File Extensions -> New -> Type 'ctp' -> OK
MacOS: Netbeans -> Preferences -> Miscellaneous -> Files -> File Extensions -> New -> Type 'ctp' -> OK
Hope this helps!
Go to Tools > Options > Miscellaneous > Files
Select File Extension = 'ctp' - (create one from the new button if the extension doesn't exist in the drop down list already)
Select Associated File Type (MIME) = PHP files
Hope that it will work for you.

From Windows OS to GitHub repository - install_github() wont work - maybe Rtools related

A: This is the project I've got in mind - (weblink) schamberlain.github.com/2012/10/rgbif-newfxns/
B: Here is their GitHub - https://github.com/ropensci/rgbif
C: My machine: i86-64bit, Windows 7, R. 2.15, RStudio 0.96.330
Following their instructions, I perform the following:
a) Download & Installation of Rtools 2.15 (weblink) cran.r-project.org/bin/windows/Rtools/
this step is plain sorcery to me, I am just following the instructions given in the "Windows toolset" appendix (weblink) cran.r-project.org/doc/manuals/R-admin.html#The-Windows-toolset.
In the end I've got this nasty C:\Rtools folder in my system, and the PATH variables (no idea what this is) are set as the appendix suggest (as far as I can say).
b) in R: library(devtools)
c) in R: install_github("rgbif", "ropensci")
This will produce some notification output and ends in this Error message (its a pastebin.com snipet of the output).
I am not sure whether or not it is possible to help with the provided information. Also I am feeling there is something missing between (a) and (b) - b/c I can't see a package 'Rtools' afterwards in R - maybe thats how it's supposed to be, how should I know?
I should add: In my default library folder .../Documents/R/win-library/2.15 there IS afterwards an un-zipped folder "ropensci-rgbif-60c74ca" with all the needed files in it! But I can't access it from within R.

fsyacc errors when building in Visual Studio

I'm using fsyacc within Visual Studio (using the Parsed Language Starter template), but the build output doesn't show the line/column where the error occured (only: fsyacc exited with code 1). I have to build from the command prompt to get this information, somewhat negating the benefit of VS integration.
Is there a way to show this in the output window?
EDIT
Here are some examples of errors that aren't shown in the output window.
Parser.fsy(74,4): error: parse error
and
building tables
FSYACC: error FSY000: NonTerminal 'query' has no productions
Here's success output that would be nice to see also:
building tables
computing first function...time: 00:00:00.1318603
building kernels...time: 00:00:00.1027372
building kernel table...time: 00:00:00.0533044
computing lookahead relations.............................
..............time: 00:00:00.0517415
building lookahead table...time: 00:00:00.0207993
building action table...state 29: shift/reduce error on AS
state 49: shift/reduce error on OR
state 49: shift/reduce error on AND
...
time: 00:00:00.1457792
building goto table...time: 00:00:00.0035636
returning tables.
39 shift/reduce conflicts
62 states
11 nonterminals
41 terminals
46 productions
#rows in action table: 62
Instead of using Parsed Language Starter template, I build parser/lexer by using Pre-build event in Build Events from VS Project Properties:
fslex "$(ProjectDir)Lexer.fsl"
fsyacc --module Grammar "$(ProjectDir)Grammar.fsy"
It is not very desirable since I have to set fsyacc/fslex in Path environment variable. Whenever I don't want to rebuild parser/lexer, I have to comment out the following part in fsproj file:
<PropertyGroup>
<PreBuildEvent>fslex "$(ProjectDir)Lexer.fsl"
fsyacc --module Grammar "$(ProjectDir)Grammar.fsy"
</PreBuildEvent>
</PropertyGroup>
However, the winning point is clear. We have all messages including errors and success output in stdout which is convenient for debugging.

Resources