Comments (5)
I think that it just means that the file encoding is wrong. On osx:
file --mime-encoding BraceCode.java BraceCode.java: iso-8859-1
Fix with:
iconv -f iso-8859-1 -t utf-8 < BraceCode.java > BraceCode.java
from patentpublicdata.
Note that iconv
first truncates the output file, so that piping its output to the same path as its input results in an empty file. I'm currently using this script to fix the source code:
#!/usr/bin/env bash
set -eo pipefail
shopt -s failglob
FILES="PatentDocument/src/main/java/gov/uspto/patent/doc/xml/BraceCode.java
PatentDocument/src/main/java/gov/uspto/patent/model/NplCitation.java
PatentDocument/src/main/java/gov/uspto/patent/model/DocumentId.java
PatentDocument/src/main/java/gov/uspto/patent/doc/greenbook/DotCodes.java
PatentDocument/src/main/java/gov/uspto/patent/doc/pap/FormattedText.java
PatentDocument/src/main/java/gov/uspto/patent/doc/sgml/FormattedText.java"
TMPFILE=`mktemp`
for FILE in ${FILES}
do
iconv -f iso-8859-1 -t utf-8 < ${FILE} > ${TMPFILE} &&
mv -f ${TMPFILE} ${FILE}
done
# Fix incorrect type signature for constructor
sed -i '' 's/, "<XX>"//g' PatentDocument/src/main/java/gov/uspto/tm/doc/brs/TmBrs.java
from patentpublicdata.
Sorry about the missing DataUtil java class it's now checked in. My IDE seems to not to be bothered by any character encoding issues, but I will continue to look into it.
from patentpublicdata.
that was nice, the encoding error got resolved, but another one occurred:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project PatentDocument: Compilation failure: Compilation failure:
[ERROR] PatentPublicData/PatentDocument/src/main/java/gov/uspto/tm/doc/brs/TmBrs.java:[32,29] cannot find symbol
[ERROR] symbol: class DateUtil
[ERROR] location: package gov.uspto.common.text
[ERROR] PatentPublicData/PatentDocument/src/main/java/gov/uspto/tm/doc/brs/TmBrs.java:[228,32] cannot find symbol
[ERROR] symbol: variable DateUtil
[ERROR] location: class gov.uspto.tm.doc.brs.TmBrs
seems like it imports a nonexistent class cause there is no mention of both DateUtil
and its called toDateTimeISO
method throughout the whole project
from patentpublicdata.
thanks, with the above-mentioned script and the newest version the build succeeds
from patentpublicdata.
Related Issues (20)
- transformer tool java.lang.IllegalArgumentException
- transformer tool java.lang.IllegalArgumentException
- Fails to read APS format
- Re issue patent gets classified as UNDEFINED
- Fails on documents with particularly long headers
- Is continuity information in the normalized Patent Object Model? HOT 2
- Error parsePatentGreenbook(gov.uspto.document.parser.dom4j.PatentParserTest) HOT 3
- Download Single document from USPTO HOT 2
- grants-bibliographic 2001-2004 transforms failing with java.io.IOException: Stream closed. HOT 2
- CVE-2020-10683 introduced by dom4j version 2.1.1
- Bulk converter crashes on ipg210921.zip
- Bulk data server stopped accepting byte ranges HOT 1
- Bulk transformer crashes on the ipa230126.zip file
- Could not resolve dependencies HOT 1
- Exception in thread "main" java.lang.NullPointerException HOT 1
- Transformer Unknown output type: xml HOT 1
- null pointer exception when transforming pftaps file to a bulk of jsons HOT 4
- Read Me missing a Getting Started section HOT 1
- transformer tool java.lang.StringIndexOutOfBoundsException
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 patentpublicdata.